diff options
author | Lukas Larsson <[email protected]> | 2017-04-10 09:41:46 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-04-21 14:30:22 +0200 |
commit | 8434b76e48b4ad1fe47b1d38dc3cac0b50d7d52d (patch) | |
tree | 4ed07ea0fe55e960a9f1e4f9a84742eb6203ef2d /erts/emulator/test/statistics_SUITE.erl | |
parent | f30d131bd979e29b68fb7d9ff515c61a246201f4 (diff) | |
download | otp-8434b76e48b4ad1fe47b1d38dc3cac0b50d7d52d.tar.gz otp-8434b76e48b4ad1fe47b1d38dc3cac0b50d7d52d.tar.bz2 otp-8434b76e48b4ad1fe47b1d38dc3cac0b50d7d52d.zip |
erts: Fix testcases for smp +S 1:1
Diffstat (limited to 'erts/emulator/test/statistics_SUITE.erl')
-rw-r--r-- | erts/emulator/test/statistics_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/statistics_SUITE.erl b/erts/emulator/test/statistics_SUITE.erl index f51244485b..729e86cb4f 100644 --- a/erts/emulator/test/statistics_SUITE.erl +++ b/erts/emulator/test/statistics_SUITE.erl @@ -329,9 +329,9 @@ scheduler_wall_time_test(Type) -> %% 50% load HalfHogs = [StartHog() || _ <- lists:seq(1, (Schedulers-1) div 2)], HalfDirtyCPUHogs = [StartDirtyHog(dirty_cpu) - || _ <- lists:seq(1, DirtyCPUSchedulers div 2)], + || _ <- lists:seq(1, lists:max([1,DirtyCPUSchedulers div 2]))], HalfDirtyIOHogs = [StartDirtyHog(dirty_io) - || _ <- lists:seq(1, DirtyIOSchedulers div 2)], + || _ <- lists:seq(1, lists:max([1,DirtyIOSchedulers div 2]))], HalfLoad = lists:sum(get_load(Type)) div TotLoadSchedulers, if Schedulers < 2, HalfLoad > 80 -> ok; %% Ok only one scheduler online and one hog %% We want roughly 50% load |