aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_util.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:33:49 +0100
committerHans Bolinder <[email protected]>2018-02-05 14:45:36 +0100
commit0f42a14f6c201ac1d8d02abcd24f9d06e0d17545 (patch)
tree5be0ac651259d0d5ad78c57436f5d929c93bef9a /lib/common_test/src/ct_util.erl
parent18d9afbd5c62bb7b7237fe0d580fc05737a096c1 (diff)
downloadotp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.tar.gz
otp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.tar.bz2
otp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.zip
common_test: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/common_test/src/ct_util.erl')
-rw-r--r--lib/common_test/src/ct_util.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_util.erl b/lib/common_test/src/ct_util.erl
index 10a06d5c88..e904bb1e7c 100644
--- a/lib/common_test/src/ct_util.erl
+++ b/lib/common_test/src/ct_util.erl
@@ -209,11 +209,10 @@ do_start(Parent, Mode, LogDir, Verbosity) ->
self() ! {{stop,{self(),{user_error,CTHReason}}},
{Parent,make_ref()}}
catch
- _:CTHReason ->
+ _:CTHReason:StackTrace ->
ErrorInfo = if is_atom(CTHReason) ->
io_lib:format("{~tp,~tp}",
- [CTHReason,
- erlang:get_stacktrace()]);
+ [CTHReason, StackTrace]);
true ->
CTHReason
end,