diff options
author | Raimo Niskanen <[email protected]> | 2014-08-15 15:10:33 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-08-18 15:57:53 +0200 |
commit | 39176f2ab7f07c676e797455000bc2dfc6bb751c (patch) | |
tree | 170328779550b18f2b3e069886618b7833a89899 /lib/snmp/test/snmp_manager_user.erl | |
parent | 215b2305cad4f1bc45fd33677198e3887d200869 (diff) | |
download | otp-39176f2ab7f07c676e797455000bc2dfc6bb751c.tar.gz otp-39176f2ab7f07c676e797455000bc2dfc6bb751c.tar.bz2 otp-39176f2ab7f07c676e797455000bc2dfc6bb751c.zip |
Write manager IPv4+IPv6 test
Diffstat (limited to 'lib/snmp/test/snmp_manager_user.erl')
-rw-r--r-- | lib/snmp/test/snmp_manager_user.erl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/snmp/test/snmp_manager_user.erl b/lib/snmp/test/snmp_manager_user.erl index ddbe156130..46c2b316be 100644 --- a/lib/snmp/test/snmp_manager_user.erl +++ b/lib/snmp/test/snmp_manager_user.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2005-2013. All Rights Reserved. +%% Copyright Ericsson AB 2005-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -109,7 +109,18 @@ start_link(Parent, Id) -> proc_lib:start_link(?MODULE, main, [true, Parent, self(), Id]). stop() -> - cast(stop). + MRef = erlang:monitor(process, ?SERVER), + cast(stop), + receive {'DOWN', MRef, _, _, Info} -> + case Info of + noproc -> + ok; + noconnection -> + ok; + normal -> + ok + end + end. info() -> call(info). |