From: Jarkko Hietaniemi Date: Tue, 18 Dec 2001 13:59:32 +0000 (+0000) Subject: Re-patch #13749. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e77c3bf8ea1b14ed562eef5350c5e9c7f5eb867;p=p5sagit%2Fp5-mst-13.2.git Re-patch #13749. p4raw-id: //depot/perl@13751 --- diff --git a/t/op/glob.t b/t/op/glob.t index c18ee2f..bc43323 100755 --- a/t/op/glob.t +++ b/t/op/glob.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -print "1..11\n"; +print "1..8\n"; @oops = @ops = ; @@ -55,23 +55,6 @@ print $i == 2 ? "ok 7\n" : "not ok 7\n"; # ... while ($var = glob(...)) should test definedness not truth -# Create a file called "0" -print open(F, ">0") ? "ok 8\n" : "not ok 8 # $!\n"; -close F; - -my $ok = "not ok 9\n"; - -# ... while ($var = glob(...)) should test definedness not truth - -my $ok = "not ok 11\n"; -$ok = "ok 11\n" while my $var = glob("0"); -print $ok; -$ok = "ok 9\n" while my $var = glob("0"); +my $ok = "not ok 8\n"; +$ok = "ok 8\n" while my $var = glob("0"); print $ok; - -print unlink("0") ? "ok 10\n" : "not ok 10\n"; - -END { - 1 while unlink "0"; -} -