diff options
author | Rickard Green <[email protected]> | 2017-01-12 14:25:30 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-01-17 12:23:19 +0100 |
commit | fd1fb9070333fe5b91f4528841a4b0fe71bbf096 (patch) | |
tree | a747557f91df495d9f63657da62f3a666777ea14 /erts/emulator/test/dirty_nif_SUITE.erl | |
parent | bc2dd09390cb6876470093f1754db22ceb53d370 (diff) | |
download | otp-fd1fb9070333fe5b91f4528841a4b0fe71bbf096.tar.gz otp-fd1fb9070333fe5b91f4528841a4b0fe71bbf096.tar.bz2 otp-fd1fb9070333fe5b91f4528841a4b0fe71bbf096.zip |
Always return info from system_info(dirty_[cpu|io]_schedulers*)
Diffstat (limited to 'erts/emulator/test/dirty_nif_SUITE.erl')
-rw-r--r-- | erts/emulator/test/dirty_nif_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/test/dirty_nif_SUITE.erl b/erts/emulator/test/dirty_nif_SUITE.erl index a61fd92a18..991ba0acc8 100644 --- a/erts/emulator/test/dirty_nif_SUITE.erl +++ b/erts/emulator/test/dirty_nif_SUITE.erl @@ -54,8 +54,8 @@ all() -> dirty_nif_send_traced]. init_per_suite(Config) -> - try erlang:system_info(dirty_cpu_schedulers) of - N when is_integer(N), N > 0 -> + case erlang:system_info(dirty_cpu_schedulers) of + N when N > 0 -> case lib_loaded() of false -> ok = erlang:load_nif( @@ -64,8 +64,8 @@ init_per_suite(Config) -> true -> ok end, - Config - catch _:_ -> + Config; + _ -> {skipped, "No dirty scheduler support"} end. |