More memory lane.
[p5sagit/p5-mst-13.2.git] / t / op / filetest.t
old mode 100644 (file)
new mode 100755 (executable)
index 66eaa39..fcded7a
@@ -5,7 +5,7 @@
 
 BEGIN {
     chdir 't' if -d 't';
-    unshift @INC, '../lib' if -d '../lib';
+    @INC = '../lib';
 }
 
 use Config;
@@ -37,6 +37,9 @@ print "# oldeuid = $oldeuid, euid = $>\n";
 
 if (!$Config{d_seteuid}) {
     print "ok 6 #skipped, no seteuid\n";
+} 
+elsif ($Config{config_args} =~/Dmksymlinks/) {
+    print "ok 6 #skipped, we cannot chmod symlinks\n";
 }
 elsif ($bad_chmod) {
     print "#[$@]\nok 6 #skipped\n";
@@ -48,11 +51,13 @@ 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...)
 print "not " unless -r 'op';
 print "ok 7\n";
 
-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...)
 if ($Config{d_seteuid}) {