aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/test/snmp_manager_user.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-08-15 15:10:33 +0200
committerRaimo Niskanen <[email protected]>2014-08-18 15:57:53 +0200
commit39176f2ab7f07c676e797455000bc2dfc6bb751c (patch)
tree170328779550b18f2b3e069886618b7833a89899 /lib/snmp/test/snmp_manager_user.erl
parent215b2305cad4f1bc45fd33677198e3887d200869 (diff)
downloadotp-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.erl15
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).