summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-30 14:25:43 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-30 14:25:43 +0000
commit5f79b44fe88fd23f9e0a19ecd0acb8d38aa1c7e2 (patch)
treed1859150b62bdf75462360a760c444c48e6c5610
parentd91eeb70be5a52264f5ea6447fa60ac41c14b484 (diff)
downloadperl-5f79b44fe88fd23f9e0a19ecd0acb8d38aa1c7e2.tar.gz
Skip order test of glob if case-ignoring system cannot
create a.test and A.test p4raw-id: //depot/perlio@9467
-rwxr-xr-xt/lib/glob-basic.t12
1 files changed, 8 insertions, 4 deletions
diff --git a/t/lib/glob-basic.t b/t/lib/glob-basic.t
index 4f143ac134..4670f7ccbc 100755
--- a/t/lib/glob-basic.t
+++ b/t/lib/glob-basic.t
@@ -143,16 +143,20 @@ $ok = 1;
@g_ascii = bsd_glob($pat, 0);
print "# f_ascii = @f_ascii\n";
print "# g_ascii = @g_ascii\n";
-for (@f_ascii) {
- $ok = 0 unless $_ eq shift @g_ascii;
+if (@g_ascii == 6) {
+ for (@f_ascii) {
+ $ok = 0 unless $_ eq shift @g_ascii;
+ }
}
print $ok ? "ok 10\n" : "not ok 10\n";
$ok = 1;
@g_alpha = bsd_glob($pat);
print "# f_alpha = @f_alpha\n";
print "# g_alpha = @g_alpha\n";
-for (@f_alpha) {
- $ok = 0 unless $_ eq shift @g_alpha;
+if (@g_ascii == 6) {
+ for (@f_alpha) {
+ $ok = 0 unless $_ eq shift @g_alpha;
+ }
}
print $ok ? "ok 11\n" : "not ok 11\n";
unlink @f_ascii;