integrate cfgperl contents into mainline
[p5sagit/p5-mst-13.2.git] / t / op / glob.t
index cc60a17..253e4a3 100755 (executable)
@@ -6,8 +6,14 @@ print "1..6\n";
 
 @oops = @ops = <op/*>;
 
-map { $files{$_}++ } <op/*>;
-map { delete $files{$_} } split /[\s\n]/, `echo op/*`;
+if ($^O eq 'MSWin32') {
+  map { $files{lc($_)}++ } <op/*>;
+  map { delete $files{"op/$_"} } split /[\s\n]/, `cmd /c "dir /b /l op & dir /b /l /ah op 2>nul"`,
+}
+else {
+  map { $files{$_}++ } <op/*>;
+  map { delete $files{$_} } split /[\s\n]/, `echo op/*`;
+}
 if (keys %files) {
        print "not ok 1\t(",join(' ', sort keys %files),"\n";
 } else { print "ok 1\n"; }