From: Tim Bunce Date: Wed, 6 Aug 1997 12:00:00 +0000 (+1200) Subject: enable some tests on Win32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed37317ba9f84f5ce2ec814d0eb235142308be59;p=p5sagit%2Fp5-mst-13.2.git enable some tests on Win32 (this is the same change as commit 6328a546c2df884868793e2912ee3da29f24d71f, but as applied) --- diff --git a/t/op/magic.t b/t/op/magic.t index 49caab5..bddcd27 100755 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -46,9 +46,9 @@ else { $| = 1; # command buffering - $SIG{"INT"} = "ok3"; kill "INT",$$; - $SIG{"INT"} = "IGNORE"; kill 2,$$; print "ok 4\n"; - $SIG{"INT"} = "DEFAULT"; kill 2,$$; print "not ok\n"; + $SIG{"INT"} = "ok3"; kill "INT",$$; + $SIG{"INT"} = "IGNORE"; kill "INT",$$; print "ok 4\n"; + $SIG{"INT"} = "DEFAULT"; kill "INT",$$; print "not ok\n"; sub ok3 { if (($x = pop(@_)) eq "INT") { @@ -106,24 +106,41 @@ ok 17, $@ eq "foo\n", $@; ok 18, $$ > 0, $$; # $^X and $0 -if ($Is_MSWin32) { - for (19 .. 25) { ok $_, 1 } -} -else { +{ if ($^O eq 'qnx') { chomp($wd = `pwd`); } else { $wd = '.'; } + my $perl = "$wd/perl"; + my $headmaybe = ''; + my $tailmaybe = ''; $script = "$wd/show-shebang"; - $s1 = $s2 = "\$^X is $wd/perl, \$0 is $script\n"; + if ($Is_MSWin32) { + chomp($wd = `cd`); + $perl = "$wd\\perl.exe"; + $script = "$wd\\show-shebang.bat"; + $headmaybe = <$script"), $!; - ok 20, print(SCRIPT <