make RE engine threadsafe; -Dusethreads builds, tests on Solaris,
[p5sagit/p5-mst-13.2.git] / t / lib / thread.t
old mode 100644 (file)
new mode 100755 (executable)
index 9810ae4..6d3fdde
@@ -4,7 +4,7 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
     require Config; import Config;
-    if ($Config{'ccflags'} !~ /USE_THREADS\b/) {
+    if (! $Config{'usethreads'}) {
        print "1..0\n";
        exit 0;
     }
@@ -50,5 +50,5 @@ join $t;
 # test that sleep lets other thread run
 $t = new Thread \&islocked,"ok 8\n";
 sleep 6;
-print "ok 9";
+print "ok 9\n";
 join $t;