filetest.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
# There are few filetest operators that are portable enough to test.
# See pod/perlport.pod for details.
BEGIN {
chdir 't' if -d 't';
}
use Config;
# make sure TEST is r-x
$oldeuid = $>; # root can read and write anything
eval '$> = 1'; # so switch uid (may not be implemented)
SKIP: {
}
}
}
else {
}
}
# Scripts are not -x everywhere so cannot test that.
eval '$> = $oldeuid'; # switch uid back (may not be implemented)
# this would fail for the euid 1
# (unless we have unpacked the source code as uid 1...)
# this would fail for the euid 1
# (unless we have unpacked the source code as uid 1...)
SKIP: {
} else {
}
}