aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/src/eunit_lib.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:35:15 +0100
committerHans Bolinder <[email protected]>2018-02-05 14:45:37 +0100
commitf3c2cfda7f145d6ffd2fdd76659348056f1828c9 (patch)
treef484fb24671985a19a2b22c1b0047b5c68e2a4af /lib/eunit/src/eunit_lib.erl
parentc8f9f79352f7da02f212848b9a854ca2f6b553d5 (diff)
downloadotp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.tar.gz
otp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.tar.bz2
otp-f3c2cfda7f145d6ffd2fdd76659348056f1828c9.zip
eunit: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/eunit/src/eunit_lib.erl')
-rw-r--r--lib/eunit/src/eunit_lib.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/eunit/src/eunit_lib.erl b/lib/eunit/src/eunit_lib.erl
index d1bd160ea1..771541354c 100644
--- a/lib/eunit/src/eunit_lib.erl
+++ b/lib/eunit/src/eunit_lib.erl
@@ -202,13 +202,13 @@ format_exception_test_() ->
"\nymmud:rorre"++_,
lists:reverse(lists:flatten(
format_exception(try erlang:error(dummy)
- catch C:R -> {C, R, erlang:get_stacktrace()}
+ catch C:R:S -> {C, R, S}
end)))),
?_assertMatch(
"\nymmud:rorre"++_,
lists:reverse(lists:flatten(
format_exception(try erlang:error(dummy, [a])
- catch C:R -> {C, R, erlang:get_stacktrace()}
+ catch C:R:S -> {C, R, S}
end))))].
-endif.