diff options
author | Hans Bolinder <[email protected]> | 2018-01-16 09:56:13 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-01-16 09:56:13 +0100 |
commit | a5a0d49a3e9e76ed893920698f7ddbd97601d671 (patch) | |
tree | 6ae245003be40b0221d3cbbdf6484c09e660475b /erts/emulator | |
parent | 0e448a62f46df4dad55c3bc724448e80a4d0048c (diff) | |
parent | ff65e1164cc16739c51c456b4e350e966cc2b1ef (diff) | |
download | otp-a5a0d49a3e9e76ed893920698f7ddbd97601d671.tar.gz otp-a5a0d49a3e9e76ed893920698f7ddbd97601d671.tar.bz2 otp-a5a0d49a3e9e76ed893920698f7ddbd97601d671.zip |
Merge branch 'hasse/stdlib/unicode_stacktrace/OTP-14847/ERL-553' into maint
* hasse/stdlib/unicode_stacktrace/OTP-14847/ERL-553:
stdlib: Handle Unicode when formatting stacktraces
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/test/code_SUITE.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/erts/emulator/test/code_SUITE.erl b/erts/emulator/test/code_SUITE.erl index fcef070f08..661a2ee6c9 100644 --- a/erts/emulator/test/code_SUITE.erl +++ b/erts/emulator/test/code_SUITE.erl @@ -951,9 +951,14 @@ erl_544(Config) when is_list(Config) -> receive Go -> ok end, Res2 = process_info(Tester, current_stacktrace), io:format("~p~n", [Res2]), - {current_stacktrace, - [{Mod, wait, 2, Info2}|_]} = Res2, + {current_stacktrace, Stack} = Res2, + [{Mod, wait, 2, Info2}|_] = Stack, File = proplists:get_value(file, Info2), + StackFun = fun(_, _, _) -> false end, + FormatFun = fun (Term, _) -> io_lib:format("~tp", [Term]) end, + Formated = + lib:format_stacktrace(1, Stack, StackFun, FormatFun), + true = is_list(Formated), ok after ok = file:set_cwd(CWD) |