aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-08-28 12:52:03 +0200
committerBjörn Gustavsson <[email protected]>2015-09-07 10:35:31 +0200
commit1afcce230bc62c04bc6ff7b105bf33be770fea29 (patch)
tree5a52dfc194b16066d57978faf47b41f152a73365 /lib/stdlib
parentab6c51ac00509a31d452dc3ac63d914895fac4aa (diff)
downloadotp-1afcce230bc62c04bc6ff7b105bf33be770fea29.tar.gz
otp-1afcce230bc62c04bc6ff7b105bf33be770fea29.tar.bz2
otp-1afcce230bc62c04bc6ff7b105bf33be770fea29.zip
proc_lib_SUITE: Remove added report handlers
Report handlers are not automatically removed. That means that the report handler will remain installed until the entire running of the stdlib test suite finishes. That could potentially cause problems.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/test/proc_lib_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdlib/test/proc_lib_SUITE.erl b/lib/stdlib/test/proc_lib_SUITE.erl
index 36f009eec6..437c981461 100644
--- a/lib/stdlib/test/proc_lib_SUITE.erl
+++ b/lib/stdlib/test/proc_lib_SUITE.erl
@@ -149,7 +149,11 @@ crash(Config) when is_list(Config) ->
?line ?t:fail({unexpected_message,Any})
after 2000 ->
ok
- end.
+ end,
+
+ error_logger:delete_report_handler(?MODULE),
+ ok.
+
sync_start_nolink(Config) when is_list(Config) ->
@@ -301,6 +305,7 @@ hibernate(Config) when is_list(Config) ->
?line {value,{initial_call,{?MODULE,hib_loop,[_]}}} =
lists:keysearch(initial_call, 1, Report),
+ error_logger:delete_report_handler(?MODULE),
ok.
hib_loop(LoopData) ->