home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / perl4036.zip / os2 / tests.dif < prev    next >
Text File  |  1993-02-26  |  18KB  |  605 lines

  1. diff -cbr orig/t/base/term.t new/t/base/term.t
  2. *** orig/t/base/term.t    Mon Feb 08 21:37:02 1993
  3. --- new/t/base/term.t    Fri Feb 26 13:28:38 1993
  4. ***************
  5. *** 29,35 ****
  6.   
  7.   # check <> pseudoliteral
  8.   
  9. ! open(try, "/dev/null") || (die "Can't open /dev/null.");
  10.   if (<try> eq '') {
  11.       print "ok 5\n";
  12.   }
  13. --- 29,35 ----
  14.   
  15.   # check <> pseudoliteral
  16.   
  17. ! open(try, "nul") || (die "Can't open /dev/null.");
  18.   if (<try> eq '') {
  19.       print "ok 5\n";
  20.   }
  21. diff -cbr orig/t/cmd/while.t new/t/cmd/while.t
  22. *** orig/t/cmd/while.t    Mon Feb 08 21:36:38 1993
  23. --- new/t/cmd/while.t    Fri Feb 26 13:28:40 1993
  24. ***************
  25. *** 90,96 ****
  26.   if (!eof || $bad) {print "not ok 8\n";} else {print "ok 8\n";}
  27.   if (!$badcont) {print "ok 9\n";} else {print "not ok 9\n";}
  28.   
  29. ! `/bin/rm -f Cmd.while.tmp`;
  30.   
  31.   #$x = 0;
  32.   #while (1) {
  33. --- 90,97 ----
  34.   if (!eof || $bad) {print "not ok 8\n";} else {print "ok 8\n";}
  35.   if (!$badcont) {print "ok 9\n";} else {print "not ok 9\n";}
  36.   
  37. ! close(fh);
  38. ! `del Cmd.while.tmp`;
  39.   
  40.   #$x = 0;
  41.   #while (1) {
  42. diff -cbr orig/t/comp/cpp.t new/t/comp/cpp.t
  43. *** orig/t/comp/cpp.t    Mon Feb 08 21:37:02 1993
  44. --- new/t/comp/cpp.t    Fri Feb 26 13:28:42 1993
  45. ***************
  46. *** 44,51 ****
  47.   print TRY '#define OK "ok 3\n"' . "\n";
  48.   close TRY;
  49.   
  50. ! $pwd=`pwd`;
  51.   $pwd =~ s/\n//;
  52. ! $x = `./perl -P Comp.cpp.tmp`;
  53.   print $x;
  54.   unlink "Comp.cpp.tmp", "Comp.cpp.inc";
  55. --- 44,51 ----
  56.   print TRY '#define OK "ok 3\n"' . "\n";
  57.   close TRY;
  58.   
  59. ! $pwd=`cd`;
  60.   $pwd =~ s/\n//;
  61. ! $x = `perl -P Comp.cpp.tmp`;
  62.   print $x;
  63.   unlink "Comp.cpp.tmp", "Comp.cpp.inc";
  64. diff -cbr orig/t/comp/script.t new/t/comp/script.t
  65. *** orig/t/comp/script.t    Mon Feb 08 21:37:16 1993
  66. --- new/t/comp/script.t    Fri Feb 26 13:28:42 1993
  67. ***************
  68. *** 4,10 ****
  69.   
  70.   print "1..3\n";
  71.   
  72. ! $x = `./perl -e 'print "ok\n";'`;
  73.   
  74.   if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
  75.   
  76. --- 4,10 ----
  77.   
  78.   print "1..3\n";
  79.   
  80. ! $x = `perl -e "print \\\"ok\\n\\\";"`;
  81.   
  82.   if ($x eq "ok\n") {print "ok 1\n";} else {print "not ok 1\n";}
  83.   
  84. ***************
  85. *** 12,23 ****
  86.   print try 'print "ok\n";'; print try "\n";
  87.   close try;
  88.   
  89. ! $x = `./perl Comp.script`;
  90.   
  91.   if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
  92.   
  93. ! $x = `./perl <Comp.script`;
  94.   
  95.   if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
  96.   
  97. ! `/bin/rm -f Comp.script`;
  98. --- 12,23 ----
  99.   print try 'print "ok\n";'; print try "\n";
  100.   close try;
  101.   
  102. ! $x = `perl Comp.script`;
  103.   
  104.   if ($x eq "ok\n") {print "ok 2\n";} else {print "not ok 2\n";}
  105.   
  106. ! $x = `perl <Comp.script`;
  107.   
  108.   if ($x eq "ok\n") {print "ok 3\n";} else {print "not ok 3\n";}
  109.   
  110. ! `del Comp.script`;
  111. diff -cbr orig/t/io/argv.t new/t/io/argv.t
  112. *** orig/t/io/argv.t    Mon Feb 08 21:37:02 1993
  113. --- new/t/io/argv.t    Fri Feb 26 13:28:44 1993
  114. ***************
  115. *** 8,26 ****
  116.   print try "a line\n";
  117.   close try;
  118.   
  119. ! $x = `./perl -e 'while (<>) {print \$.,\$_;}' Io.argv.tmp Io.argv.tmp`;
  120.   
  121.   if ($x eq "1a line\n2a line\n") {print "ok 1\n";} else {print "not ok 1\n";}
  122.   
  123. ! $x = `echo foo|./perl -e 'while (<>) {print $_;}' Io.argv.tmp -`;
  124.   
  125.   if ($x eq "a line\nfoo\n") {print "ok 2\n";} else {print "not ok 2\n";}
  126.   
  127. ! $x = `echo foo|./perl -e 'while (<>) {print $_;}'`;
  128.   
  129.   if ($x eq "foo\n") {print "ok 3\n";} else {print "not ok 3 :$x:\n";}
  130.   
  131. ! @ARGV = ('Io.argv.tmp', 'Io.argv.tmp', '/dev/null', 'Io.argv.tmp');
  132.   while (<>) {
  133.       $y .= $. . $_;
  134.       if (eof()) {
  135. --- 8,26 ----
  136.   print try "a line\n";
  137.   close try;
  138.   
  139. ! $x = `perl -e "while (<>) {print \$.,\$_;}" Io.argv.tmp Io.argv.tmp`;
  140.   
  141.   if ($x eq "1a line\n2a line\n") {print "ok 1\n";} else {print "not ok 1\n";}
  142.   
  143. ! $x = `echo foo | perl -e "while (<>) {print $_;}" Io.argv.tmp -`;
  144.   
  145.   if ($x eq "a line\nfoo\n") {print "ok 2\n";} else {print "not ok 2\n";}
  146.   
  147. ! $x = `echo foo | perl -e "while (<>) {print $_;}"`;
  148.   
  149.   if ($x eq "foo\n") {print "ok 3\n";} else {print "not ok 3 :$x:\n";}
  150.   
  151. ! @ARGV = ('Io.argv.tmp', 'Io.argv.tmp', 'nul', 'Io.argv.tmp');
  152.   while (<>) {
  153.       $y .= $. . $_;
  154.       if (eof()) {
  155. ***************
  156. *** 33,36 ****
  157.   else
  158.       {print "not ok 5\n";}
  159.   
  160. ! `/bin/rm -f Io.argv.tmp`;
  161. --- 33,36 ----
  162.   else
  163.       {print "not ok 5\n";}
  164.   
  165. ! `del Io.argv.tmp`;
  166. diff -cbr orig/t/io/pipe.t new/t/io/pipe.t
  167. *** orig/t/io/pipe.t    Mon Feb 08 21:37:02 1993
  168. --- new/t/io/pipe.t    Fri Feb 26 13:28:44 1993
  169. ***************
  170. *** 5,11 ****
  171.   $| = 1;
  172.   print "1..8\n";
  173.   
  174. ! open(PIPE, "|-") || (exec 'tr', '[A-Z]', '[a-z]');
  175.   print PIPE "OK 1\n";
  176.   print PIPE "ok 2\n";
  177.   close PIPE;
  178. --- 5,11 ----
  179.   $| = 1;
  180.   print "1..8\n";
  181.   
  182. ! open(PIPE, "|-") || (exec 'tr.exe', '[A-Z]', '[a-z]');
  183.   print PIPE "OK 1\n";
  184.   print PIPE "ok 2\n";
  185.   close PIPE;
  186. ***************
  187. *** 18,24 ****
  188.   }
  189.   else {
  190.       print STDOUT "not ok 3\n";
  191. !     exec 'echo', 'not ok 4';
  192.   }
  193.   
  194.   pipe(READER,WRITER) || die "Can't open pipe";
  195. --- 18,24 ----
  196.   }
  197.   else {
  198.       print STDOUT "not ok 3\n";
  199. !     exec 'perlglob', 'not ok 4';
  200.   }
  201.   
  202.   pipe(READER,WRITER) || die "Can't open pipe";
  203. diff -cbr orig/t/op/dbm.t new/t/op/dbm.t
  204. *** orig/t/op/dbm.t    Mon Feb 08 21:36:38 1993
  205. --- new/t/op/dbm.t    Fri Feb 26 13:28:44 1993
  206. ***************
  207. *** 2,13 ****
  208.   
  209.   # $RCSfile: dbm.t,v $$Revision: 4.0.1.1 $$Date: 92/06/08 15:43:02 $
  210.   
  211. - if (!-r '/usr/include/dbm.h' && !-r '/usr/include/ndbm.h'
  212. -     && !-r '/usr/include/rpcsvc/dbm.h') {
  213. -     print "1..0\n";
  214. -     exit;
  215. - }
  216.   print "1..12\n";
  217.   
  218.   unlink <Op.dbmx.*>;
  219. --- 2,7 ----
  220. diff -cbr orig/t/op/exec.t new/t/op/exec.t
  221. *** orig/t/op/exec.t    Mon Feb 08 21:37:10 1993
  222. --- new/t/op/exec.t    Fri Feb 26 13:28:46 1993
  223. ***************
  224. *** 7,21 ****
  225.   
  226.   print "not ok 1\n" if system "echo ok \\1";    # shell interpreted
  227.   print "not ok 2\n" if system "echo ok 2";    # split and directly called
  228. ! print "not ok 3\n" if system "echo", "ok", "3"; # directly called
  229.   
  230.   if (system "true") {print "not ok 4\n";} else {print "ok 4\n";}
  231.   
  232. ! if ((system "/bin/sh -c 'exit 1'") != 256) { print "not "; }
  233.   print "ok 5\n";
  234.   
  235. ! if ((system "lskdfj") == 255 << 8) {print "ok 6\n";} else {print "not ok 6\n";}
  236.   
  237.   unless (exec "lskdjfalksdjfdjfkls") {print "ok 7\n";} else {print "not ok 7\n";}
  238.   
  239. ! exec "echo","ok","8";
  240. --- 7,21 ----
  241.   
  242.   print "not ok 1\n" if system "echo ok \\1";    # shell interpreted
  243.   print "not ok 2\n" if system "echo ok 2";    # split and directly called
  244. ! print "not ok 3\n" if system "perlglob", "ok", "3", "\n"; # directly called
  245.   
  246.   if (system "true") {print "not ok 4\n";} else {print "ok 4\n";}
  247.   
  248. ! if ((system "sh -c \"exit 1\"") != 1) { print "not "; }
  249.   print "ok 5\n";
  250.   
  251. ! if ((system "lskdfj") == 255) {print "ok 6\n";} else {print "not ok 6\n";}
  252.   
  253.   unless (exec "lskdjfalksdjfdjfkls") {print "ok 7\n";} else {print "not ok 7\n";}
  254.   
  255. ! exec "perlglob","ok","8";
  256. diff -cbr orig/t/op/glob.t new/t/op/glob.t
  257. *** orig/t/op/glob.t    Mon Feb 08 21:37:20 1993
  258. --- new/t/op/glob.t    Fri Feb 26 13:28:46 1993
  259. ***************
  260. *** 7,13 ****
  261.   @ops = <op/*>;
  262.   $list = join(' ',@ops);
  263.   
  264. ! chop($otherway = `echo op/*`);
  265.   
  266.   print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n";
  267.   
  268. --- 7,13 ----
  269.   @ops = <op/*>;
  270.   $list = join(' ',@ops);
  271.   
  272. ! chop($otherway = `perlglob op/*`);
  273.   
  274.   print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n";
  275.   
  276. diff -cbr orig/t/op/goto.t new/t/op/goto.t
  277. *** orig/t/op/goto.t    Mon Feb 08 21:37:12 1993
  278. --- new/t/op/goto.t    Fri Feb 26 13:28:48 1993
  279. ***************
  280. *** 29,33 ****
  281.   print "#2\t:$foo: == 4\n";
  282.   if ($foo == 4) {print "ok 2\n";} else {print "not ok 2\n";}
  283.   
  284. ! $x = `./perl -e 'goto foo;' 2>&1`;
  285.   if ($x =~ /label/) {print "ok 3\n";} else {print "not ok 3\n";}
  286. --- 29,33 ----
  287.   print "#2\t:$foo: == 4\n";
  288.   if ($foo == 4) {print "ok 2\n";} else {print "not ok 2\n";}
  289.   
  290. ! $x = `perl -e "goto foo;" 2>&1`;
  291.   if ($x =~ /label/) {print "ok 3\n";} else {print "not ok 3\n";}
  292. diff -cbr orig/t/op/magic.t new/t/op/magic.t
  293. *** orig/t/op/magic.t    Mon Feb 08 21:37:00 1993
  294. --- new/t/op/magic.t    Fri Feb 26 13:28:48 1993
  295. ***************
  296. *** 7,13 ****
  297.   print "1..5\n";
  298.   
  299.   eval '$ENV{"foo"} = "hi there";';    # check that ENV is inited inside eval
  300. ! if (`echo \$foo` eq "hi there\n") {print "ok 1\n";} else {print "not ok 1\n";}
  301.   
  302.   unlink 'ajslkdfpqjsjfk';
  303.   $! = 0;
  304. --- 7,13 ----
  305.   print "1..5\n";
  306.   
  307.   eval '$ENV{"foo"} = "hi there";';    # check that ENV is inited inside eval
  308. ! if (`echo %foo%` eq "hi there\n") {print "ok 1\n";} else {print "not ok 1\n";}
  309.   
  310.   unlink 'ajslkdfpqjsjfk';
  311.   $! = 0;
  312. ***************
  313. *** 17,30 ****
  314.   # the next tests are embedded inside system simply because sh spits out
  315.   # a newline onto stderr when a child process kills itself with SIGINT.
  316.   
  317. ! system './perl',
  318.   '-e', '$| = 1;        # command buffering',
  319.   
  320. ! '-e', '$SIG{"INT"} = "ok3"; kill 2,$$;',
  321. ! '-e', '$SIG{"INT"} = "IGNORE"; kill 2,$$; print "ok 4\n";',
  322. ! '-e', '$SIG{"INT"} = "DEFAULT"; kill 2,$$; print "not ok\n";',
  323.   
  324. ! '-e', 'sub ok3 { print "ok 3\n" if pop(@_) eq "INT"; }';
  325.   
  326.   @val1 = @ENV{keys(%ENV)};    # can we slice ENV?
  327.   @val2 = values(%ENV);
  328. --- 17,30 ----
  329.   # the next tests are embedded inside system simply because sh spits out
  330.   # a newline onto stderr when a child process kills itself with SIGINT.
  331.   
  332. ! system 'perl',
  333.   '-e', '$| = 1;        # command buffering',
  334.   
  335. ! '-e', '$SIG{"TERM"} = "ok3"; kill 0,$$;',
  336. ! '-e', '$SIG{"TERM"} = "IGNORE"; kill 0,$$; print "ok 4\n";',
  337. ! '-e', '$SIG{"TERM"} = "DEFAULT"; kill 0,$$; print "not ok\n";',
  338.   
  339. ! '-e', 'sub ok3 { print "ok 3\n" if pop(@_) eq "TERM"; }';
  340.   
  341.   @val1 = @ENV{keys(%ENV)};    # can we slice ENV?
  342.   @val2 = values(%ENV);
  343. diff -cbr orig/t/op/mkdir.t new/t/op/mkdir.t
  344. *** orig/t/op/mkdir.t    Mon Feb 08 21:37:20 1993
  345. --- new/t/op/mkdir.t    Fri Feb 26 13:28:50 1993
  346. ***************
  347. *** 4,14 ****
  348.   
  349.   print "1..7\n";
  350.   
  351. ! `rm -rf blurfl`;
  352.   
  353.   print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
  354.   print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
  355. ! print ($! =~ /exist/ ? "ok 3\n" : "not ok 3\n");
  356.   print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
  357.   print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
  358.   print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
  359. --- 4,14 ----
  360.   
  361.   print "1..7\n";
  362.   
  363. ! `rm -r blurfl`;
  364.   
  365.   print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
  366.   print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
  367. ! print ($! =~ /denied/ ? "ok 3\n" : "not ok 3\n");
  368.   print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
  369.   print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
  370.   print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
  371. diff -cbr orig/t/op/split.t new/t/op/split.t
  372. *** orig/t/op/split.t    Mon Feb 08 21:36:46 1993
  373. --- new/t/op/split.t    Fri Feb 26 13:28:50 1993
  374. ***************
  375. *** 47,53 ****
  376.   print $_ eq '1:2:3:4:5:6:::' ? "ok 10\n" : "not ok 10 $_\n";
  377.   
  378.   # Does assignment to a list imply split to one more field than that?
  379. ! $foo = `./perl -D1024 -e '(\$a,\$b) = split;' 2>&1`;
  380.   print $foo =~ /DEBUGGING/ || $foo =~ /num\(3\)/ ? "ok 11\n" : "not ok 11\n";
  381.   
  382.   # Can we say how many fields to split to when assigning to a list?
  383. --- 47,53 ----
  384.   print $_ eq '1:2:3:4:5:6:::' ? "ok 10\n" : "not ok 10 $_\n";
  385.   
  386.   # Does assignment to a list imply split to one more field than that?
  387. ! $foo = `perl -D1024 -e "(\$a,\$b) = split;" 2>&1`;
  388.   print $foo =~ /DEBUGGING/ || $foo =~ /num\(3\)/ ? "ok 11\n" : "not ok 11\n";
  389.   
  390.   # Can we say how many fields to split to when assigning to a list?
  391. diff -cbr orig/t/op/stat.t new/t/op/stat.t
  392. *** orig/t/op/stat.t    Mon Feb 08 21:36:22 1993
  393. --- new/t/op/stat.t    Fri Feb 26 13:28:50 1993
  394. ***************
  395. *** 4,12 ****
  396.   
  397.   print "1..56\n";
  398.   
  399. ! chop($cwd = `pwd`);
  400.   
  401. ! $DEV = `ls -l /dev`;
  402.   
  403.   unlink "Op.stat.tmp";
  404.   open(FOO, ">Op.stat.tmp");
  405. --- 4,12 ----
  406.   
  407.   print "1..56\n";
  408.   
  409. ! chop($cwd = `cd`);
  410.   
  411. ! $DEV = `ls -l`;
  412.   
  413.   unlink "Op.stat.tmp";
  414.   open(FOO, ">Op.stat.tmp");
  415. ***************
  416. *** 23,29 ****
  417.   
  418.   sleep 2;
  419.   
  420. ! `rm -f Op.stat.tmp2; ln Op.stat.tmp Op.stat.tmp2; chmod 644 Op.stat.tmp`;
  421.   
  422.   ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
  423.       $blksize,$blocks) = stat('Op.stat.tmp');
  424. --- 23,29 ----
  425.   
  426.   sleep 2;
  427.   
  428. ! `del Op.stat.tmp2; ln Op.stat.tmp Op.stat.tmp2; chmod 644 Op.stat.tmp 2>nul`;
  429.   
  430.   ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
  431.       $blksize,$blocks) = stat('Op.stat.tmp');
  432. ***************
  433. *** 73,80 ****
  434.   if (-d '.') {print "ok 23\n";} else {print "not ok 23\n";}
  435.   if (! -f '.') {print "ok 24\n";} else {print "not ok 24\n";}
  436.   
  437. ! if (`ls -l perl` =~ /^l.*->/) {
  438. !     if (-l 'perl') {print "ok 25\n";} else {print "not ok 25\n";}
  439.   }
  440.   else {
  441.       print "ok 25\n";
  442. --- 73,80 ----
  443.   if (-d '.') {print "ok 23\n";} else {print "not ok 23\n";}
  444.   if (! -f '.') {print "ok 24\n";} else {print "not ok 24\n";}
  445.   
  446. ! if (`ls -l perl.exe` =~ /^l.*->/) {
  447. !     if (-l 'perl.exe') {print "ok 25\n";} else {print "not ok 25\n";}
  448.   }
  449.   else {
  450.       print "ok 25\n";
  451. ***************
  452. *** 83,89 ****
  453.   if (-o 'Op.stat.tmp') {print "ok 26\n";} else {print "not ok 26\n";}
  454.   
  455.   if (-e 'Op.stat.tmp') {print "ok 27\n";} else {print "not ok 27\n";}
  456. ! `rm -f Op.stat.tmp Op.stat.tmp2`;
  457.   if (! -e 'Op.stat.tmp') {print "ok 28\n";} else {print "not ok 28\n";}
  458.   
  459.   if ($DEV !~ /\nc.* (\S+)\n/)
  460. --- 83,89 ----
  461.   if (-o 'Op.stat.tmp') {print "ok 26\n";} else {print "not ok 26\n";}
  462.   
  463.   if (-e 'Op.stat.tmp') {print "ok 27\n";} else {print "not ok 27\n";}
  464. ! `del Op.stat.tmp Op.stat.tmp2 2>nul`;
  465.   if (! -e 'Op.stat.tmp') {print "ok 28\n";} else {print "not ok 28\n";}
  466.   
  467.   if ($DEV !~ /\nc.* (\S+)\n/)
  468. ***************
  469. *** 113,119 ****
  470.   $cnt = $uid = 0;
  471.   
  472.   die "Can't run op/stat.t test 35 without pwd working" unless $cwd;
  473. ! chdir '/usr/bin' || die "Can't cd to /usr/bin";
  474.   while (defined($_ = <*>)) {
  475.       $cnt++;
  476.       $uid++ if -u;
  477. --- 113,119 ----
  478.   $cnt = $uid = 0;
  479.   
  480.   die "Can't run op/stat.t test 35 without pwd working" unless $cwd;
  481. ! chdir '../os2' || die "Can't cd to ../os2";
  482.   while (defined($_ = <*>)) {
  483.       $cnt++;
  484.       $uid++ if -u;
  485. ***************
  486. *** 124,138 ****
  487.   # I suppose this is going to fail somewhere...
  488.   if ($uid > 0 && $uid < $cnt) {print "ok 35\n";} else {print "not ok 35\n";}
  489.   
  490. ! unless (open(tty,"/dev/tty")) {
  491. !     print STDERR "Can't open /dev/tty--run t/TEST outside of make.\n";
  492.   }
  493.   if (-t tty) {print "ok 36\n";} else {print "not ok 36\n";}
  494.   if (-c tty) {print "ok 37\n";} else {print "not ok 37\n";}
  495.   close(tty);
  496.   if (! -t tty) {print "ok 38\n";} else {print "not ok 38\n";}
  497. ! open(null,"/dev/null");
  498. ! if (! -t null || -e '/xenix') {print "ok 39\n";} else {print "not ok 39\n";}
  499.   close(null);
  500.   if (-t) {print "ok 40\n";} else {print "not ok 40\n";}
  501.   
  502. --- 124,138 ----
  503.   # I suppose this is going to fail somewhere...
  504.   if ($uid > 0 && $uid < $cnt) {print "ok 35\n";} else {print "not ok 35\n";}
  505.   
  506. ! unless (open(tty,"con")) {
  507. !     print STDERR "Can't open con--run t/TEST outside of make.\n";
  508.   }
  509.   if (-t tty) {print "ok 36\n";} else {print "not ok 36\n";}
  510.   if (-c tty) {print "ok 37\n";} else {print "not ok 37\n";}
  511.   close(tty);
  512.   if (! -t tty) {print "ok 38\n";} else {print "not ok 38\n";}
  513. ! open(null,"nul");
  514. ! if (! -t null || -e 'c:/os2krnl') {print "ok 39\n";} else {print "not ok 39\n";}
  515.   close(null);
  516.   if (-t) {print "ok 40\n";} else {print "not ok 40\n";}
  517.   
  518. ***************
  519. *** 141,148 ****
  520.   if (-T 'op/stat.t') {print "ok 41\n";} else {print "not ok 41\n";}
  521.   if (! -B 'op/stat.t') {print "ok 42\n";} else {print "not ok 42\n";}
  522.   
  523. ! if (-B './perl') {print "ok 43\n";} else {print "not ok 43\n";}
  524. ! if (! -T './perl') {print "ok 44\n";} else {print "not ok 44\n";}
  525.   
  526.   open(FOO,'op/stat.t');
  527.   eval { -T FOO; };
  528. --- 141,148 ----
  529.   if (-T 'op/stat.t') {print "ok 41\n";} else {print "not ok 41\n";}
  530.   if (! -B 'op/stat.t') {print "ok 42\n";} else {print "not ok 42\n";}
  531.   
  532. ! if (-B 'perl.exe') {print "ok 43\n";} else {print "not ok 43\n";}
  533. ! if (! -T 'perl.exe') {print "ok 44\n";} else {print "not ok 44\n";}
  534.   
  535.   open(FOO,'op/stat.t');
  536.   eval { -T FOO; };
  537. ***************
  538. *** 172,176 ****
  539.   }
  540.   close(FOO);
  541.   
  542. ! if (-T '/dev/null') {print "ok 55\n";} else {print "not ok 55\n";}
  543. ! if (-B '/dev/null') {print "ok 56\n";} else {print "not ok 56\n";}
  544. --- 172,176 ----
  545.   }
  546.   close(FOO);
  547.   
  548. ! if (-T 'nul') {print "ok 55\n";} else {print "not ok 55\n";}
  549. ! if (-B 'nul') {print "ok 56\n";} else {print "not ok 56\n";}
  550. diff -cbr orig/t/TEST new/t/TEST
  551. *** orig/t/TEST    Mon Feb 08 21:36:44 1993
  552. --- new/t/TEST    Fri Feb 26 13:28:52 1993
  553. ***************
  554. *** 16,22 ****
  555.   
  556.   if ($ARGV[0] eq '') {
  557.       @ARGV = split(/[ \n]/,
  558. !       `echo base/*.t comp/*.t cmd/*.t io/*.t; echo op/*.t lib/*.t`);
  559.   }
  560.   
  561.   open(CONFIG,"../config.sh");
  562. --- 16,22 ----
  563.   
  564.   if ($ARGV[0] eq '') {
  565.       @ARGV = split(/[ \n]/,
  566. !       `ls base/*.t comp/*.t cmd/*.t io/*.t op/*.t lib/*.t`);
  567.   }
  568.   
  569.   open(CONFIG,"../config.sh");
  570. ***************
  571. *** 35,41 ****
  572.       chop($te);
  573.       print "$te" . '.' x (15 - length($te));
  574.       if ($sharpbang) {
  575. !     open(results,"./$test|") || (print "can't run.\n");
  576.       } else {
  577.       open(script,"$test") || die "Can't run $test.\n";
  578.       $_ = <script>;
  579. --- 35,41 ----
  580.       chop($te);
  581.       print "$te" . '.' x (15 - length($te));
  582.       if ($sharpbang) {
  583. !     open(results,"$test|") || (print "can't run.\n");
  584.       } else {
  585.       open(script,"$test") || die "Can't run $test.\n";
  586.       $_ = <script>;
  587. ***************
  588. *** 45,51 ****
  589.       } else {
  590.           $switch = '';
  591.       }
  592. !     open(results,"./perl$switch $test|") || (print "can't run.\n");
  593.       }
  594.       $ok = 0;
  595.       $next = 0;
  596. --- 45,51 ----
  597.       } else {
  598.           $switch = '';
  599.       }
  600. !     open(results,"perl$switch $test|") || (print "can't run.\n");
  601.       }
  602.       $ok = 0;
  603.       $next = 0;
  604.