Subject: | "superuser" test is not working on Cygwin |
The test for "superuser" doesn't work on Cygwin and consequently produces spurious test fails. Unless the test who is "superuser" gets more specific, just skip those tests on Cygwin (Windows is likely to have the same issue, but I've not tested that).
Subject: | perl-Inline-Files.src.patch |
--- origsrc/Inline-Files-0.68/tests/03nowrite.t 2011-07-08 12:38:30.000000000 +0200
+++ src/Inline-Files-0.68/tests/03nowrite.t 2015-05-23 20:49:19.530788100 +0200
@@ -32,7 +32,7 @@ use Inline::Files;
my $text = <FILE>;
close FILE;
skip(
- $> == 0 ? "Skip if run by superuser" : 0,
+ ( $> == 0 || $^O eq 'cygwin' ) ? "Skip if run by superuser" : 0,
$text !~ /__MYFILE__\nNew stuff\n$/
);
}