aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_gen_conn.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2017-10-06 14:22:25 +0200
committerPeter Andersson <[email protected]>2017-10-25 17:28:55 +0200
commit2df013b5bfd714247570d9b4958b40f7559d35dd (patch)
tree2c3f7208158de9b0b23617f906f402e5a6e3c326 /lib/common_test/src/ct_gen_conn.erl
parent70b6b32a9c7e3e3fca45fc3a0e11e2a5087a4660 (diff)
downloadotp-2df013b5bfd714247570d9b4958b40f7559d35dd.tar.gz
otp-2df013b5bfd714247570d9b4958b40f7559d35dd.tar.bz2
otp-2df013b5bfd714247570d9b4958b40f7559d35dd.zip
Tag Common Test system processes using process dictionary
Diffstat (limited to 'lib/common_test/src/ct_gen_conn.erl')
-rw-r--r--lib/common_test/src/ct_gen_conn.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_gen_conn.erl b/lib/common_test/src/ct_gen_conn.erl
index badb7c52ae..456bfd8bd1 100644
--- a/lib/common_test/src/ct_gen_conn.erl
+++ b/lib/common_test/src/ct_gen_conn.erl
@@ -186,9 +186,11 @@ end_log() ->
do_within_time(Fun,Timeout) ->
Self = self(),
Silent = get(silent),
- TmpPid = spawn_link(fun() -> put(silent,Silent),
- R = Fun(),
- Self ! {self(),R}
+ TmpPid = spawn_link(fun() ->
+ ct_util:mark_process(),
+ put(silent,Silent),
+ R = Fun(),
+ Self ! {self(),R}
end),
ConnPid = get(conn_pid),
receive
@@ -301,6 +303,7 @@ return({To,Ref},Result) ->
init_gen(Parent,Opts) ->
process_flag(trap_exit,true),
+ ct_util:mark_process(),
put(silent,false),
try (Opts#gen_opts.callback):init(Opts#gen_opts.name,
Opts#gen_opts.address,