aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nif_SUITE.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-13 19:58:45 +0100
committerSverker Eriksson <[email protected]>2017-02-20 20:06:36 +0100
commit471a22dd081da31933c883afe686007793812075 (patch)
treee74815c229081255e0c9243613626fef4356c643 /erts/emulator/test/nif_SUITE.erl
parent68ad03bc3661f4bf82afbbde65a8d04861a6f799 (diff)
downloadotp-471a22dd081da31933c883afe686007793812075.tar.gz
otp-471a22dd081da31933c883afe686007793812075.tar.bz2
otp-471a22dd081da31933c883afe686007793812075.zip
Expand nif_SUITE:monitor_frenzy to verify dtor calls
Diffstat (limited to 'erts/emulator/test/nif_SUITE.erl')
-rw-r--r--erts/emulator/test/nif_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/test/nif_SUITE.erl b/erts/emulator/test/nif_SUITE.erl
index d29537e3ef..8439b28010 100644
--- a/erts/emulator/test/nif_SUITE.erl
+++ b/erts/emulator/test/nif_SUITE.erl
@@ -742,7 +742,12 @@ monitor_frenzy(Config) ->
Pids = monitor_frenzy_nif(stop, 0, 0, 0),
io:format("stats = ~p\n", [monitor_frenzy_nif(stats, 0, 0, 0)]),
- lists:foreach(fun(P) -> exit(P, stop) end, Pids),
+ lists:foreach(fun(P) ->
+ MRef = monitor(process, P),
+ exit(P, stop),
+ {'DOWN', MRef, process, P, _} = receive_any()
+ end,
+ Pids),
io:format("stats = ~p\n", [monitor_frenzy_nif(stats, 0, 0, 0)]),