abort under automated testing if we can't find threads support code
authorTony Cook <tony@develop-help.com>
Thu, 25 Oct 2012 04:01:06 +0000 (15:01 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 24 Nov 2012 04:05:55 +0000 (15:05 +1100)
Makefile.PL

index aee608c..3d3cffa 100644 (file)
@@ -181,6 +181,9 @@ if ($Config{useithreads}) {
   else {
     print "Unsupported threading model\n";
     push @objs, "mutexnull.o";
+    if ($ENV{AUTOMATED_TESTING}) {
+      die "OS unsupported: no threading support code for this platform\n";
+    }
   }
 }
 else {