aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_util.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-05-27 09:35:40 +0200
committerSiri Hansen <[email protected]>2013-05-27 09:35:40 +0200
commitdb674e658b124c1f7c5d504c978eb6f757999527 (patch)
tree394037cc54e9e33ca3f9b36ff51a5a43f7e603cf /lib/common_test/src/ct_util.erl
parente2fd5cb90a91dd1e0e35b0d707beb23cab9f85d8 (diff)
parent429e9d8ce78f7498e06e252e487c75cea6c585d4 (diff)
downloadotp-db674e658b124c1f7c5d504c978eb6f757999527.tar.gz
otp-db674e658b124c1f7c5d504c978eb6f757999527.tar.bz2
otp-db674e658b124c1f7c5d504c978eb6f757999527.zip
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/src/ct_util.erl')
-rw-r--r--lib/common_test/src/ct_util.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_util.erl b/lib/common_test/src/ct_util.erl
index 6a8b37bf3b..b77845eb5b 100644
--- a/lib/common_test/src/ct_util.erl
+++ b/lib/common_test/src/ct_util.erl
@@ -421,6 +421,8 @@ loop(Mode,TestData,StartDir) ->
"Reason: ~p\n\n",
[Pid,A,CB,Reason]),
catch CB:close(Pid),
+ %% in case CB:close failed to do this:
+ unregister_connection(Pid),
loop(Mode,TestData,StartDir);
_ ->
%% Let process crash in case of error, this shouldn't happen!