misc tweaks
[p5sagit/p5-mst-13.2.git] / t / lib / posix.t
index b71cb43..4f5ee19 100755 (executable)
@@ -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');
 _exit(0);