This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In t/op/filetest.t, simplify the skip logic when testing -r and -w on op.
[perl5.git] / t / op / filetest.t
index c47a857..7dda4f7 100644 (file)
@@ -46,20 +46,10 @@ SKIP: {
 
 eval '$> = $oldeuid';  # switch uid back (may not be implemented)
 
-# this would fail for the euid 1
+# these would fail for the euid 1
 # (unless we have unpacked the source code as uid 1...)
 ok( -r 'op' );
-
-# this would fail for the euid 1
-# (unless we have unpacked the source code as uid 1...)
-SKIP: {
-    if ($Config{d_seteuid}) {
-       ok( -w 'op' );
-    } else {
-       skip('no seteuid');
-    }
-}
-
+ok( -w 'op' );
 ok( -x 'op' ); # Hohum.  Are directories -x everywhere?
 
 is( "@{[grep -r, qw(foo io noo op zoo)]}", "io op" );