This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In t/op/filetest.t, simplify the skip logic when testing -r and -w on op.
[perl5.git]
/
t
/
op
/
filetest.t
diff --git
a/t/op/filetest.t
b/t/op/filetest.t
index
c47a857
..
7dda4f7
100644
(file)
--- a/
t/op/filetest.t
+++ b/
t/op/filetest.t
@@
-46,20
+46,10
@@
SKIP: {
eval '$> = $oldeuid'; # switch uid back (may not be implemented)
eval '$> = $oldeuid'; # switch uid back (may not be implemented)
-# th
is
would fail for the euid 1
+# th
ese
would fail for the euid 1
# (unless we have unpacked the source code as uid 1...)
ok( -r 'op' );
# (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" );
ok( -x 'op' ); # Hohum. Are directories -x everywhere?
is( "@{[grep -r, qw(foo io noo op zoo)]}", "io op" );