make testsuite reflect change#3157 (Math::BigFloat->new now
[p5sagit/p5-mst-13.2.git] / t / lib / posix.t
index b71cb43..4c6aa49 100755 (executable)
@@ -2,7 +2,7 @@
 
 BEGIN {
     chdir 't' if -d 't';
-    @INC = '../lib';
+    unshift @INC, '../lib';
     require Config; import Config;
     if ($^O ne 'VMS' and $Config{'extensions'} !~ /\bPOSIX\b/) {
        print "1..0\n";
@@ -53,16 +53,13 @@ print "ok 11\n";
 
 sub SigHUP {
     print "ok 8\n";
-    $n = 8;
     kill 'INT', $$;
     sleep 2;
-    ++$n;
-    print "ok $n\n";
+    print "ok 9\n";
 }
 
 sub SigINT {
-    ++$n;
-    print "ok $n\n";
+    print "ok 10\n";
 }
 }
 
@@ -99,5 +96,6 @@ print &POSIX::acos(1.0) == 0.0 ? "ok 17\n" : "not ok 17\n";
 print POSIX::strftime("ok 18 # %H:%M, on %D\n", localtime());
 
 $| = 0;
-print '@#!*$@(!@#$';
+# The following line assumes buffered output, which may be not true with EMX:
+print '@#!*$@(!@#$' unless ($^O eq 'os2' || $^O eq 'uwin' || $^O eq 'os390');
 _exit(0);