summaryrefslogtreecommitdiff
path: root/t/op/magic.t
diff options
context:
space:
mode:
authorNikola Knezevic <indy@tesla.rcub.bg.ac.yu>2001-08-12 22:49:27 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-14 13:01:02 +0000
commit26f6e34212a5795183f452bf7d44e768aae8a446 (patch)
tree1aa92053b22bedbf29a0e8cedb0d207b3ce59cae /t/op/magic.t
parent8a12a0aa1b3f4ae9e8561b7176eb9a1fae9324a3 (diff)
downloadperl-26f6e34212a5795183f452bf7d44e768aae8a446.tar.gz
magic.t
Message-ID: <844732764.20010812204927@tesla.rcub.bg.ac.yu> p4raw-id: //depot/perl@11668
Diffstat (limited to 't/op/magic.t')
-rwxr-xr-xt/op/magic.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/op/magic.t b/t/op/magic.t
index a847ca8660..8d9b67b00c 100755
--- a/t/op/magic.t
+++ b/t/op/magic.t
@@ -32,7 +32,9 @@ $PERL = ($Is_MSWin32 ? '.\perl' : ($Is_NetWare ? 'perl' : './perl'));
print "1..41\n";
eval '$ENV{"FOO"} = "hi there";'; # check that ENV is inited inside eval
-if ($Is_MSWin32) { ok 1, `set FOO` eq "FOO=hi there\n"; }
+# cmd.exe will echo 'variable=value' but 4nt will echo just the value
+# -- Nikola Knezevic
+if ($Is_MSWin32) { ok 1, `set FOO` =~ /^(FOO=)?hi there$/; }
else { ok 1, `echo \$FOO` eq "hi there\n"; }
unlink 'ajslkdfpqjsjfk';
@@ -201,7 +203,9 @@ else {
$ENV{__NoNeSuCh} = "foo";
$0 = "bar";
- ok 30, ($Is_MSWin32 ? (`set __NoNeSuCh` eq "__NoNeSuCh=foo\n")
+# cmd.exe will echo 'variable=value' but 4nt will echo just the value
+# -- Nikola Knezevic
+ ok 30, ($Is_MSWin32 ? (`set __NoNeSuCh` =~ /^(__NoNeSuCh=)?foo$/)
: (`echo \$__NoNeSuCh` eq "foo\n") );
}