diff options
author | Lukas Larsson <[email protected]> | 2017-07-18 14:30:55 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-07-18 14:30:55 +0200 |
commit | aa8df5238a20a539bc90deb68aa39050197ba725 (patch) | |
tree | bf5108a9a9304b8377b9e5a922274daef6f0ba20 /lib/kernel/test/zlib_SUITE.erl | |
parent | de5cfabdad61d45a112d95e24ac44e3f51a4bd18 (diff) | |
parent | 7b5a1a7e787570ff13805a150e4c7c13bda8b0a6 (diff) | |
download | otp-aa8df5238a20a539bc90deb68aa39050197ba725.tar.gz otp-aa8df5238a20a539bc90deb68aa39050197ba725.tar.bz2 otp-aa8df5238a20a539bc90deb68aa39050197ba725.zip |
lukas/erts/remove-non-smp/OTP-14518
Remove support for the non-smp emulators
Diffstat (limited to 'lib/kernel/test/zlib_SUITE.erl')
-rw-r--r-- | lib/kernel/test/zlib_SUITE.erl | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/lib/kernel/test/zlib_SUITE.erl b/lib/kernel/test/zlib_SUITE.erl index 4b67fce9a8..a44ef106d3 100644 --- a/lib/kernel/test/zlib_SUITE.erl +++ b/lib/kernel/test/zlib_SUITE.erl @@ -885,29 +885,23 @@ split_bin(Last,Acc) -> %% Check concurrent access to zlib driver. smp(Config) -> - case erlang:system_info(smp_support) of - true -> - NumOfProcs = lists:min([8,erlang:system_info(schedulers)]), - io:format("smp starting ~p workers\n",[NumOfProcs]), - - %% Tests to run in parallel. - Funcs = [zip_usage, gz_usage, compress_usage, dictionary_usage, - crc, adler], - - %% We get all function arguments here to avoid repeated parallel - %% file read access. - FnAList = lists:map(fun(F) -> {F,?MODULE:F({get_arg,Config})} - end, Funcs), - - Pids = [spawn_link(?MODULE, worker, [rand:uniform(9999), - list_to_tuple(FnAList), - self()]) - || _ <- lists:seq(1,NumOfProcs)], - wait_pids(Pids); - - false -> - {skipped,"No smp support"} - end. + NumOfProcs = lists:min([8,erlang:system_info(schedulers)]), + io:format("smp starting ~p workers\n",[NumOfProcs]), + + %% Tests to run in parallel. + Funcs = [zip_usage, gz_usage, compress_usage, dictionary_usage, + crc, adler], + + %% We get all function arguments here to avoid repeated parallel + %% file read access. + FnAList = lists:map(fun(F) -> {F,?MODULE:F({get_arg,Config})} + end, Funcs), + + Pids = [spawn_link(?MODULE, worker, [rand:uniform(9999), + list_to_tuple(FnAList), + self()]) + || _ <- lists:seq(1,NumOfProcs)], + wait_pids(Pids). worker(Seed, FnATpl, Parent) -> |