From: Gurusamy Sarathy Date: Mon, 7 Jul 1997 08:07:22 +0000 (+1200) Subject: enable some tests on Win32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6328a546c2df884868793e2912ee3da29f24d71f;p=p5sagit%2Fp5-mst-13.2.git enable some tests on Win32 This enables the tests that check $^X, on Win32. p5p-msgid: 199707250029.UAA02351@aatma.engin.umich.edu --- diff --git a/t/op/magic.t b/t/op/magic.t index 49caab5..b2e322a 100755 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -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 <