summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-10-10 15:21:24 +0000
committerNicholas Clark <nick@ccl4.org>2004-10-10 15:21:24 +0000
commit54cf8e17f0d40db1139c694ac85474f8b0c35b86 (patch)
tree0dfd65403bf104a7649d03464ff0fdffd7a77a64
parentb4ebbc942f328f1a36f70b899d9165fa73484cd8 (diff)
downloadperl-54cf8e17f0d40db1139c694ac85474f8b0c35b86.tar.gz
Hack to make -Dusethreads -Uuseithreads -Uuse5005threads pass all tests
p4raw-id: //depot/perl@23356
-rw-r--r--ext/B/t/OptreeCheck.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/B/t/OptreeCheck.pm b/ext/B/t/OptreeCheck.pm
index 47367d36df..fe5d84e9d7 100644
--- a/ext/B/t/OptreeCheck.pm
+++ b/ext/B/t/OptreeCheck.pm
@@ -187,7 +187,18 @@ our %gOpts = # values are replaced at runtime !!
);
-our $threaded = 1 if $Config::Config{usethreads};
+# Not sure if this is too much cheating. Officially we say that
+# $Config::Config{usethreads} is true if some sort of threading is in use,
+# in which case we ought to be able to use it in place of the || below.
+# However, it is now possible to Configure perl with "threads" but neither
+# ithreads or 5005threads, which forces the re-entrant APIs, but no perl
+# user visible threading. This seems to have the side effect that most of perl
+# doesn't think that it's threaded, hence the ops aren't threaded either.
+# Not sure if this is actually a "supported" configuration, but given that
+# ponie uses it, it's going to be used by something official at least in the
+# interim. So it's nice for tests to all pass.
+our $threaded = 1
+ if $Config::Config{useithreads} || $Config::Config{use5005threads};
our $platform = ($threaded) ? "threaded" : "plain";
our $thrstat = ($threaded) ? "threaded" : "nonthreaded";