diff options
author | Siri Hansen <[email protected]> | 2017-05-31 19:13:36 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-06-16 11:52:20 +0200 |
commit | 9d95abb3597eb4e19df40704fe8533b5d384d3e9 (patch) | |
tree | 69ac5ce1be04f70fedb84431362d576b1a61b484 /lib/common_test/src/ct_testspec.erl | |
parent | d3a53ae2b2800b33f3b25b83ff2314e64153c2aa (diff) | |
download | otp-9d95abb3597eb4e19df40704fe8533b5d384d3e9.tar.gz otp-9d95abb3597eb4e19df40704fe8533b5d384d3e9.tar.bz2 otp-9d95abb3597eb4e19df40704fe8533b5d384d3e9.zip |
[ct] Print unicode atoms and strings correctly in common_test logs
And use correct encoding when printing to files.
Diffstat (limited to 'lib/common_test/src/ct_testspec.erl')
-rw-r--r-- | lib/common_test/src/ct_testspec.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_testspec.erl b/lib/common_test/src/ct_testspec.erl index 180786273d..09839bd35d 100644 --- a/lib/common_test/src/ct_testspec.erl +++ b/lib/common_test/src/ct_testspec.erl @@ -344,7 +344,7 @@ create_spec_tree([Spec|Specs],TS,JoinWithNext,Known) -> create_spec_tree(Specs,TS,JoinWithNext,Known)}; {error,Reason} -> ReasonStr = - lists:flatten(io_lib:format("~s", + lists:flatten(io_lib:format("~ts", [file:format_error(Reason)])), throw({error,{SpecAbsName,ReasonStr}}) end @@ -1101,7 +1101,7 @@ check_term(Term) when is_tuple(Term) -> true -> io:format("~nSuspicious term, " "please check:~n" - "~p~n", [Term]), + "~tp~n", [Term]), invalid; false -> invalid |