diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:35:15 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-05 14:45:37 +0100 |
commit | f3c2cfda7f145d6ffd2fdd76659348056f1828c9 (patch) | |
tree | f484fb24671985a19a2b22c1b0047b5c68e2a4af /lib/eunit/src/eunit_listener.erl | |
parent | c8f9f79352f7da02f212848b9a854ca2f6b553d5 (diff) | |
download | otp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.tar.gz otp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.tar.bz2 otp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.zip |
eunit: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/eunit/src/eunit_listener.erl')
-rw-r--r-- | lib/eunit/src/eunit_listener.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/eunit/src/eunit_listener.erl b/lib/eunit/src/eunit_listener.erl index e652c5b2f6..75aa05c543 100644 --- a/lib/eunit/src/eunit_listener.erl +++ b/lib/eunit/src/eunit_listener.erl @@ -137,8 +137,7 @@ call(F, As, St) when is_atom(F) -> try apply(St#state.callback, F, As) of Substate -> St#state{state = Substate} catch - Class:Term -> - Trace = erlang:get_stacktrace(), + Class:Term:Trace -> if F =/= terminate -> call(terminate, [{error, {Class, Term, Trace}}, St#state.state], St); |