aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/driver_SUITE.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-12-21 13:27:35 +0100
committerSverker Eriksson <[email protected]>2017-12-21 13:27:35 +0100
commitbe5141bd723f7e7a39cd3015b39a4308781a8d1b (patch)
treeeb21fac7abfff9fad5c1de6dd2d975768daf75c4 /erts/emulator/test/driver_SUITE.erl
parent324265a52cf196d984af65563b1a0662f0164a30 (diff)
parentfb60cf1408edc6ee03c7e391419367d047721809 (diff)
downloadotp-be5141bd723f7e7a39cd3015b39a4308781a8d1b.tar.gz
otp-be5141bd723f7e7a39cd3015b39a4308781a8d1b.tar.bz2
otp-be5141bd723f7e7a39cd3015b39a4308781a8d1b.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
-rw-r--r--erts/emulator/test/driver_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl
index 6446d5f6d2..e133349216 100644
--- a/erts/emulator/test/driver_SUITE.erl
+++ b/erts/emulator/test/driver_SUITE.erl
@@ -1768,7 +1768,10 @@ smp_select0(Config) ->
smp_select_loop(_, 0) ->
ok;
smp_select_loop(Port, N) ->
- "ok" = erlang:port_control(Port, ?CHKIO_SMP_SELECT, []),
+ case erlang:port_control(Port, ?CHKIO_SMP_SELECT, []) of
+ "yield" -> erlang:yield();
+ "ok" -> ok
+ end,
receive
stop ->
io:format("Worker ~p stopped with ~p laps left\n",[self(), N]),