diff options
author | Lukas Larsson <[email protected]> | 2017-04-25 11:01:10 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-04-25 11:01:10 +0200 |
commit | 6b57999ee020e5b1ebd8781ad7008b14cdd49688 (patch) | |
tree | 0adbdb7225eec95ea456d8cf74d5a210ce5f219d /erts/emulator/test/statistics_SUITE.erl | |
parent | 0eb103aa9e05b88e4c4337973b16ed2a7e0039f7 (diff) | |
parent | 8434b76e48b4ad1fe47b1d38dc3cac0b50d7d52d (diff) | |
download | otp-6b57999ee020e5b1ebd8781ad7008b14cdd49688.tar.gz otp-6b57999ee020e5b1ebd8781ad7008b14cdd49688.tar.bz2 otp-6b57999ee020e5b1ebd8781ad7008b14cdd49688.zip |
Merge branch 'lukas/erts/deprecate-non-smp/OTP-14272'
* lukas/erts/deprecate-non-smp/OTP-14272:
erts: Fix testcases for smp +S 1:1
erts: Deprecate the non-smp emulators
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 |