# check bad protections
# should return an empty list, and set ERROR
-$dir = "PtEeRsLt.dir";
-mkdir $dir, 0;
-@a = File::Glob::glob("$dir/*", GLOB_ERR);
-#print "\@a = ", array(@a);
-rmdir $dir;
-if (scalar(@a) != 0 || (($^O ne 'MSWin32' and $^O ne 'os2')
- && GLOB_ERROR == 0)) {
- print "not ";
+if ($^O eq 'MSWin32' or $^O eq 'os2' or not $>) {
+ print "ok 6 # skipped\n";
+}
+else {
+ $dir = "PtEeRsLt.dir";
+ mkdir $dir, 0;
+ @a = File::Glob::glob("$dir/*", GLOB_ERR);
+ #print "\@a = ", array(@a);
+ rmdir $dir;
+ if (scalar(@a) != 0 || GLOB_ERROR == 0) {
+ print "not ";
+ }
+ print "ok 6\n";
}
-print "ok 6\n";
# check for csh style globbing
@a = File::Glob::glob('{a,b}', GLOB_BRACE | GLOB_NOMAGIC);