diff options
author | Lukas Larsson <lukas@erlang-solutions.com> | 2014-04-10 09:47:52 +0200 |
---|---|---|
committer | Lukas Larsson <lukas@erlang-solutions.com> | 2014-04-10 09:47:52 +0200 |
commit | 3fa8cba85018d77599a4028dcc300fb08f92d422 (patch) | |
tree | 86ea059b200ac2054a1fcabb8edaff054c6961a2 /lib/kernel | |
parent | 07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff) | |
download | otp-3fa8cba85018d77599a4028dcc300fb08f92d422.tar.gz otp-3fa8cba85018d77599a4028dcc300fb08f92d422.tar.bz2 otp-3fa8cba85018d77599a4028dcc300fb08f92d422.zip |
kernel: Skip sendfile tests that force async threads
The tests have to be skipped when the emulator running the tests does
not have any async threads.
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/test/sendfile_SUITE.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/kernel/test/sendfile_SUITE.erl b/lib/kernel/test/sendfile_SUITE.erl index 2c741232c4..123e849ccb 100644 --- a/lib/kernel/test/sendfile_SUITE.erl +++ b/lib/kernel/test/sendfile_SUITE.erl @@ -72,7 +72,12 @@ end_per_suite(Config) -> file:delete(proplists:get_value(big_file, Config)). init_per_group(async_threads,Config) -> - [{sendfile_opts,[{use_threads,true}]}|Config]; + case erlang:system_info(thread_pool_size) of + 0 -> + {skip,"No async threads"}; + _ -> + [{sendfile_opts,[{use_threads,true}]}|Config] + end; init_per_group(no_async_threads,Config) -> [{sendfile_opts,[{use_threads,false}]}|Config]. |