aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/gen_udp_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:33:21 +0100
committerHans Bolinder <[email protected]>2018-02-05 14:45:37 +0100
commit798f2151429ef7ea05d858e5ba9efc6d5cc3e10a (patch)
tree181f2eac563fc62baa80f3a5a3c8caa443721073 /lib/kernel/test/gen_udp_SUITE.erl
parentb2e979e1b0cc376e7408cbdd480eb140b533f75a (diff)
downloadotp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.tar.gz
otp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.tar.bz2
otp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.zip
kernel: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/kernel/test/gen_udp_SUITE.erl')
-rw-r--r--lib/kernel/test/gen_udp_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl
index 96e495505a..6a50239c2a 100644
--- a/lib/kernel/test/gen_udp_SUITE.erl
+++ b/lib/kernel/test/gen_udp_SUITE.erl
@@ -755,9 +755,9 @@ ok({ok,V}) -> V;
ok(NotOk) ->
try throw(not_ok)
catch
- Thrown ->
+ throw:Thrown:Stacktrace ->
erlang:raise(
- error, {Thrown, NotOk}, tl(erlang:get_stacktrace()))
+ error, {Thrown, NotOk}, tl(Stacktrace))
end.