File: skip_testGetLinkInfoDirectory.patch

package info (click to toggle)
libsis-base-java 18.09~pre1%2Bgit20180827.fe4953e%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,156 kB
  • sloc: java: 9,106; ansic: 813; xml: 160; sh: 139; makefile: 35
file content (30 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Skip non-functional test
  From: Adam Borowski <kilobyte@angband.pl>
  Date: Mon, 15 Jan 2018 00:11:55 +0100
  .
  This is caused by an assumption that link count of a directory without any
  hardlinks is 2 (or more general, 2 plus number of subdirectories).  This is
  true on 70's sysvfs and descendants like ext*, and emulated by most
  filesystems, but not all.
  .
  Btrfs and some remote filesystems instead always give 1 (directory hardlinks
  being an unthing on any filesystems I'm aware of, symlinks and reflinks have
  a different semantic and thus neither is shown in link count).
  .
  Thus, this test is bogus and should be skipped.
Bug-Debian: https://bugs.debian.org/885962
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 15 Jan 2018 07:58:49 +0100
Forwarded-Upstream: Bernd Rinn <brinn@ethz.ch>

--- a/sourceTest/java/ch/systemsx/cisd/base/unix/UnixTests.java
+++ b/sourceTest/java/ch/systemsx/cisd/base/unix/UnixTests.java
@@ -90,7 +90,7 @@ public class UnixTests extends AbstractF
     }
 
     @Test(groups =
-        { "requires_unix" })
+        { "skip_this_test" })
     public void testGetLinkInfoSymLink() throws IOException
     {
         final File f = new File(workingDirectory, "someOtherFile");