aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-04-16 12:59:43 +0200
committerBjörn Gustavsson <[email protected]>2018-04-16 13:30:06 +0200
commit1f4b02e1ebe8dd011feba5dc6916025e61ee7e67 (patch)
tree65b1198a2e9ea288d0e294fa32654ebf90090317 /lib/asn1/test/asn1_SUITE.erl
parent0cdf2e2e276984087f8807a19db0ed4606a3e097 (diff)
downloadotp-1f4b02e1ebe8dd011feba5dc6916025e61ee7e67.tar.gz
otp-1f4b02e1ebe8dd011feba5dc6916025e61ee7e67.tar.bz2
otp-1f4b02e1ebe8dd011feba5dc6916025e61ee7e67.zip
asn1: Eliminate use of erlang:get_stacktrace/0
Also eliminate use of erlang:get_stacktrace/0 in code generated by the ASN.1 compiler.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE.erl')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl
index bfeffa969f..8cf6745103 100644
--- a/lib/asn1/test/asn1_SUITE.erl
+++ b/lib/asn1/test/asn1_SUITE.erl
@@ -227,10 +227,9 @@ test(Config, TestF, Rules) ->
try
TestF(C, R, O)
catch
- Class:Reason ->
+ Class:Reason:Stk ->
NewReason = {Reason, [{rule, R}, {options, O}]},
- erlang:raise(Class, NewReason,
- erlang:get_stacktrace())
+ erlang:raise(Class, NewReason, Stk)
end
end,
Result = [run_case(Config, Fun, rule(Rule), opts(Rule)) || Rule <- Rules],