X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbase%2Fterm.t;h=2d3fe5a5e1e8f7b7b3e76cacc1911e8ae160c264;hb=cf2649810f00335bd657355d81bcc9384a620135;hp=e86633787977419233f8d3a164d0f3f344cd8fe0;hpb=95e8664e86da93255f26600f44bbbd70bf5b5b0e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/base/term.t b/t/base/term.t index e866337..2d3fe5a 100755 --- a/t/base/term.t +++ b/t/base/term.t @@ -11,7 +11,7 @@ print "1..7\n"; # check "" interpretation $x = "\n"; -# 10 is ASCII/Iso Latin, 13 in Mac OS, 21 is EBCDIC. +# 10 is ASCII/Iso Latin, 13 is Mac OS, 21 is EBCDIC. if ($x eq chr(10)) { print "ok 1\n";} elsif ($x eq chr(13)) { print "ok 1 # Mac OS\n"; } elsif ($x eq chr(21)) { print "ok 1 # EBCDIC\n"; } @@ -19,7 +19,7 @@ else {print "not ok 1\n";} # check `` processing -$x = `echo hi there`; +$x = `$^X -le "print 'hi there'"`; if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";} # check $#array @@ -40,7 +40,12 @@ if (($x | 1) == 101) {print "ok 5\n";} else {print "not ok 5\n";} # check <> pseudoliteral -open(try, "/dev/null") || open(try,"Dev:Null") || open(try,"nla0:") || (die "Can't open /dev/null."); +if ($^O eq 'MacOS') { + open(try,"Dev:Null") || (die "Can't open /dev/null."); +} else { + open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null."); +} + if ( eq '') { print "ok 6\n"; }