From 37f928e483bfe7f038b253b3bdb8f236b6e8920d Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Wed, 1 Dec 2010 14:16:49 +0100 Subject: 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... --- erts/test/ethread_SUITE.erl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'erts/test') 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."]; -- cgit v1.2.3