diff options
author | Rickard Green <[email protected]> | 2011-12-06 16:03:09 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2011-12-06 16:03:09 +0100 |
commit | 99a225e257cc166ea1d1b2cc49c14e97e7c50e5d (patch) | |
tree | 57492bcd34633f90c6f96bf68469d0a1e9c91a70 /erts/test/ethread_SUITE.erl | |
parent | ae337488eb3ad933ed5eeff5ab29130a180a3729 (diff) | |
download | otp-99a225e257cc166ea1d1b2cc49c14e97e7c50e5d.tar.gz otp-99a225e257cc166ea1d1b2cc49c14e97e7c50e5d.tar.bz2 otp-99a225e257cc166ea1d1b2cc49c14e97e7c50e5d.zip |
Skip detached test-case on MacOSX Leopard
Diffstat (limited to 'erts/test/ethread_SUITE.erl')
-rw-r--r-- | erts/test/ethread_SUITE.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/test/ethread_SUITE.erl b/erts/test/ethread_SUITE.erl index 4206bebfe7..80f988b0aa 100644 --- a/erts/test/ethread_SUITE.erl +++ b/erts/test/ethread_SUITE.erl @@ -174,7 +174,15 @@ detached_thread(doc) -> detached_thread(suite) -> []; detached_thread(Config) -> - run_case(Config, "detached_thread", ""). + 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, "detached_thread", "") + end. max_threads(doc) -> ["Tests maximum number of threads."]; |