From: Hans Mulder Date: Tue, 21 Jul 1998 13:06:44 +0000 (-0700) Subject: t/io/inplace.t enabled for VMS X-Git-Tag: accepted/trunk/20130322.191538~37204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=103a9d1588db80145c6682742c60a9b743493535;p=platform%2Fupstream%2Fperl.git t/io/inplace.t enabled for VMS Message-Id: <3.0.5.32.19980721130644.00ac5100@ous.edu> p4raw-id: //depot/perl@1635 --- diff --git a/t/io/inplace.t b/t/io/inplace.t index 2652c8b..bef876e 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'; diff --git a/vms/test.com b/vms/test.com index 81dfc46..0e507dd 100644 --- a/vms/test.com +++ b/vms/test.com @@ -100,7 +100,7 @@ $ Deck/Dollar=$$END-OF-TEST$$ use Config; @compexcl=('cpp.t'); -@ioexcl=('argv.t','dup.t','fs.t','inplace.t','pipe.t'); +@ioexcl=('argv.t','dup.t','fs.t','pipe.t'); @libexcl=('db-btree.t','db-hash.t','db-recno.t', 'gdbm.t','io_dup.t', 'io_pipe.t', 'io_sel.t', 'io_sock.t', 'ndbm.t','odbm.t','open2.t','open3.t', 'ph.t', 'posix.t');