summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorHans Mulder <hansmu@xs4all.nl>1998-07-21 06:06:44 -0700
committerGurusamy Sarathy <gsar@cpan.org>1998-07-22 07:59:30 +0000
commit103a9d1588db80145c6682742c60a9b743493535 (patch)
treeb68dec42813719cff872597469b4e2b1269cf1aa /t
parent4119ab016d0560936307b2cf3ff5fda644a62a9a (diff)
downloadperl-103a9d1588db80145c6682742c60a9b743493535.tar.gz
t/io/inplace.t enabled for VMS
Message-Id: <3.0.5.32.19980721130644.00ac5100@ous.edu> p4raw-id: //depot/perl@1635
Diffstat (limited to 't')
-rwxr-xr-xt/io/inplace.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/io/inplace.t b/t/io/inplace.t
index 2652c8bebe..bef876e136 100755
--- a/t/io/inplace.t
+++ b/t/io/inplace.t
@@ -1,6 +1,6 @@
#!./perl
-$^I = '.bak';
+$^I = $^O eq 'VMS' ? '_bak' : '.bak';
# $RCSfile: inplace.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:29 $
@@ -13,6 +13,12 @@ if ($^O eq 'MSWin32') {
`.\\perl -le "print 'foo'" > .b`;
`.\\perl -le "print 'foo'" > .c`;
}
+elsif ($^O eq 'VMS') {
+ $CAT = 'MCR []perl. -e "print<>"';
+ `MCR []perl. -le "print 'foo'" > ./.a`;
+ `MCR []perl. -le "print 'foo'" > ./.b`;
+ `MCR []perl. -le "print 'foo'" > ./.c`;
+}
else {
$CAT = 'cat';
`echo foo | tee .a .b .c`;
@@ -25,6 +31,6 @@ continue {
}
if (`$CAT .a .b .c` eq "bar\nbar\nbar\n") {print "ok 1\n";} else {print "not ok 1\n";}
-if (`$CAT .a.bak .b.bak .c.bak` eq "foo\nfoo\nfoo\n") {print "ok 2\n";} else {print "not ok 2\n";}
+if (`$CAT .a$^I .b$^I .c$^I` eq "foo\nfoo\nfoo\n") {print "ok 2\n";} else {print "not ok 2\n";}
-unlink '.a', '.b', '.c', '.a.bak', '.b.bak', '.c.bak';
+unlink '.a', '.b', '.c', '.a$^I', '.b$^I', '.c$^I';