diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-11-19 14:36:40 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-11-19 14:36:40 +0000 |
commit | 2350dd961bfde5601b439a574c7eef94d090aa04 (patch) | |
tree | 760c24ffa03a06ec68b3a320fd210bb549d97d17 | |
parent | 4f241346ab6e8b24546ff75298ad6fc99b946e01 (diff) | |
parent | 5cb58bd01ba47dd108eef704d65515fdbca45e2b (diff) | |
download | rabbitmq-server-2350dd961bfde5601b439a574c7eef94d090aa04.tar.gz |
stable to default
-rw-r--r-- | test/src/supervisor2_tests.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/supervisor2_tests.erl b/test/src/supervisor2_tests.erl index 4d362e5b..195211b0 100644 --- a/test/src/supervisor2_tests.erl +++ b/test/src/supervisor2_tests.erl @@ -49,7 +49,12 @@ check_shutdown(SigStop, Iterations, ChildCount, SupTimeout) -> R end, ok, lists:seq(1, Iterations)), unlink(Sup), + MSupRef = erlang:monitor(process, Sup), exit(Sup, shutdown), + receive + {'DOWN', MSupRef, process, Sup, _Reason} -> + ok + end, Res. start_link() -> |