diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:33:49 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-05 14:45:36 +0100 |
commit | 0f42a14f6c201ac1d8d02abcd24f9d06e0d17545 (patch) | |
tree | 5be0ac651259d0d5ad78c57436f5d929c93bef9a /lib/common_test/test | |
parent | 18d9afbd5c62bb7b7237fe0d580fc05737a096c1 (diff) | |
download | otp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.tar.gz otp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.tar.bz2 otp-0f42a14f6c201ac1d8d02abcd24f9d06e0d17545.zip |
common_test: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/common_test/test')
-rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE_data/ns.erl | 3 | ||||
-rw-r--r-- | lib/common_test/test/ct_unicode_SUITE_data/unicode_atoms_SUITE.erl | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl index 63bf9be134..975f6cafcb 100644 --- a/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl +++ b/lib/common_test/test/ct_netconfc_SUITE_data/ns.erl @@ -231,8 +231,7 @@ data_for_channel(CM, Ch, Data, State) -> {ok, NewState} end catch - Class:Reason -> - Stacktrace = erlang:get_stacktrace(), + Class:Reason:Stacktrace -> error_logger:error_report([{?MODULE, data_for_channel}, {request, Data}, {buffer, State#session.buffer}, diff --git a/lib/common_test/test/ct_unicode_SUITE_data/unicode_atoms_SUITE.erl b/lib/common_test/test/ct_unicode_SUITE_data/unicode_atoms_SUITE.erl index 993452500e..041c13cdbd 100644 --- a/lib/common_test/test/ct_unicode_SUITE_data/unicode_atoms_SUITE.erl +++ b/lib/common_test/test/ct_unicode_SUITE_data/unicode_atoms_SUITE.erl @@ -77,7 +77,7 @@ all() -> 'fail_αβ_4'(_Config) -> ct:log("This is test case ~tw",[?FUNCTION_NAME]), - S = try throw(ok) catch throw:ok -> erlang:get_stacktrace() end, + S = try throw(ok) catch throw:ok:Stacktrace -> Stacktrace end, erlang:raise(error,{error,testcase,?FUNCTION_NAME},S), ok. |