aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-12-01 14:16:49 +0100
committerRickard Green <[email protected]>2010-12-01 14:16:49 +0100
commit37f928e483bfe7f038b253b3bdb8f236b6e8920d (patch)
treefa67788173f10f532e838cd5212a74a9d7110b5c /erts
parent07881ee69f6fd9ae9d211b50bae1a22d553525d2 (diff)
downloadotp-37f928e483bfe7f038b253b3bdb8f236b6e8920d.tar.gz
otp-37f928e483bfe7f038b253b3bdb8f236b6e8920d.tar.bz2
otp-37f928e483bfe7f038b253b3bdb8f236b6e8920d.zip
Skip ethread_SUITE:max_threads test on MacOS X Leopard
For some reason pthread_create() crashes when more threads cannot be created, instead of returning an error code on our MacOS X Leopard machine...
Diffstat (limited to 'erts')
-rw-r--r--erts/test/ethread_SUITE.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/test/ethread_SUITE.erl b/erts/test/ethread_SUITE.erl
index 0cc315e9be..93e27fa8d3 100644
--- a/erts/test/ethread_SUITE.erl
+++ b/erts/test/ethread_SUITE.erl
@@ -171,7 +171,15 @@ max_threads(doc) ->
max_threads(suite) ->
[];
max_threads(Config) ->
- run_case(Config, "max_threads", "").
+ case {os:type(), os:version()} of
+ {{unix,darwin}, {9, _, _}} ->
+ %% For some reason pthread_create() crashes when more
+ %% threads cannot be created, instead of returning an
+ %% error code on our MacOS X Leopard machine...
+ {skipped, "MacOS X Leopard cannot cope with this test..."};
+ _ ->
+ run_case(Config, "max_threads", "")
+ end.
tsd(doc) ->
["Tests thread specific data."];