Permalink
Browse files

It doesn't make sense to test $^X in an embedding application

  • Loading branch information...
1 parent b2347f6 commit 44dc7aded0f9ed19143bb9fb4bd9be89c56db30e @sorear sorear committed Apr 4, 2010
Showing with 7 additions and 12 deletions.
  1. +7 −12 t/spec/base/term.t
View
@@ -2,7 +2,7 @@ BEGIN {
chdir 't' if -d 't';
}
-print "1..7\n";
+print "1..6\n";
# check "" interpretation
@@ -13,38 +13,33 @@ elsif ($x eq chr(13)) { print "ok 1 # Mac OS\n"; }
elsif ($x eq chr(21)) { print "ok 1 # EBCDIC\n"; }
else {print "not ok 1\n";}
-# check `` processing
-
-$x = `$^X -le "print 'hi there'"`;
-if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2 # TODO implement -l \n";}
-
# check $#array
$x[0] = 'foo';
$x[1] = 'foo';
$tmp = $#x;
print "#3\t:$tmp: == :1:\n";
-if ($#x == '1') {print "ok 3\n";} else {print "not ok 3\n";}
+if ($#x == '1') {print "ok 2\n";} else {print "not ok 2\n";}
# check numeric literal
$x = 1;
-if ($x == '1') {print "ok 4\n";} else {print "not ok 4\n";}
+if ($x == '1') {print "ok 3\n";} else {print "not ok 3\n";}
$x = '1E2';
-if (($x | 1) == 101) {print "ok 5\n";} else {print "not ok 5\n";}
+if (($x | 1) == 101) {print "ok 4\n";} else {print "not ok 4\n";}
# check <> pseudoliteral
open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
if (<try> eq '') {
- print "ok 6\n";
+ print "ok 5\n";
}
else {
- print "not ok 6\n";
+ print "not ok 5\n";
die "/dev/null IS NOT A CHARACTER SPECIAL FILE!!!!\n" unless -c '/dev/null';
}
open(try, "harness") || (die "Can't open harness.");
-if (<try> ne '') {print "ok 7\n";} else {print "not ok 7\n";}
+if (<try> ne '') {print "ok 6\n";} else {print "not ok 6\n";}

0 comments on commit 44dc7ad

Please sign in to comment.