From: Gurusamy Sarathy Date: Wed, 14 Oct 1998 23:22:41 +0000 (+0000) Subject: use better numbers for exitstatus test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d289e7db020f51c3b365d7505ca1a0e8ad4ae805;p=p5sagit%2Fp5-mst-13.2.git use better numbers for exitstatus test p4raw-id: //depot/perl@1965 --- diff --git a/t/op/die_exit.t b/t/op/die_exit.t index ffbb1e0..26b477a 100755 --- a/t/op/die_exit.t +++ b/t/op/die_exit.t @@ -31,7 +31,7 @@ my %tests = ( 15 => [ 255, 1], 16 => [ 255, 256], # see if implicit close preserves $? - 17 => [ 42, 42, '{ local *F; open F, q[TEST]; close F } die;'], + 17 => [ 0, 512, '{ local *F; open F, q[TEST]; close F } die;'], ); my $max = keys %tests; @@ -46,8 +46,8 @@ foreach my $test (1 .. $max) { ? system qq($perl -e "\$! = $bang; \$? = $query; $code" 2> nul) : system qq($perl -e '\$! = $bang; \$? = $query; $code' 2> /dev/null)); - printf "# 0x%04x 0x%04x 0x%04x\nnot ", $exit, $bang, $query - unless $exit == (($bang || ($query >> 8) || 255) << 8); + printf "# 0x%04x 0x%04x 0x%04x\n", $exit, $bang, $query; + print "not " unless $exit == (($bang || ($query >> 8) || 255) << 8); print "ok $test\n"; }