diff options
author | John Högberg <[email protected]> | 2018-09-17 11:28:31 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-09-17 11:28:31 +0200 |
commit | 125d8095ecb012e74d9102a97ef341d676aa46ed (patch) | |
tree | 16ac07f9a2b6c58a23a6a4edddf9ef5b84547ef2 /erts/emulator/test | |
parent | 93bf02fef9f560ae3d7464bcff6ce4c81c155263 (diff) | |
parent | 3a33f5ffe2d130789a7ebc45df75dbb56988016e (diff) | |
download | otp-125d8095ecb012e74d9102a97ef341d676aa46ed.tar.gz otp-125d8095ecb012e74d9102a97ef341d676aa46ed.tar.bz2 otp-125d8095ecb012e74d9102a97ef341d676aa46ed.zip |
Merge branch 'maint'
* maint:
Improve trapping in lists:reverse/2
Fix unsafe use of lists:reverse/1
Diffstat (limited to 'erts/emulator/test')
-rw-r--r-- | erts/emulator/test/scheduler_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/test/scheduler_SUITE.erl b/erts/emulator/test/scheduler_SUITE.erl index 7eebbe8b19..d98edd1ec2 100644 --- a/erts/emulator/test/scheduler_SUITE.erl +++ b/erts/emulator/test/scheduler_SUITE.erl @@ -2155,7 +2155,7 @@ workers_exit([Ps|Pss]) -> workers_exit(Pss). do_work(PartTime) -> - lists:reverse(lists:seq(1, 50)), + _ = id(lists:seq(1, 50)), receive stop_work -> receive after infinity -> ok end after 0 -> ok end, case PartTime of true -> receive after 1 -> ok end; @@ -2163,6 +2163,8 @@ do_work(PartTime) -> end, do_work(PartTime). +id(I) -> I. + workers(N, _Prio, _PartTime) when N =< 0 -> []; workers(N, Prio, PartTime) -> |