aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2016-11-21 12:15:06 +0100
committerRichard Carlsson <[email protected]>2016-11-29 08:34:17 +0100
commit9755ab551e94ecb2d87c6035fa818768d1c53b82 (patch)
tree0349988f26de09d27ad8815bf352b02d5feb2f58 /lib/stdlib/test
parent6cd29742be8c11c250d3c07ef180e15c04347c91 (diff)
downloadotp-9755ab551e94ecb2d87c6035fa818768d1c53b82.tar.gz
otp-9755ab551e94ecb2d87c6035fa818768d1c53b82.tar.bz2
otp-9755ab551e94ecb2d87c6035fa818768d1c53b82.zip
Write node info before log message body, not after
Make error_logger_tty_h insert node information for nonlocal messages before the message itself instead of after, both for readability and so as not to change the line termination property at the end of the message.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/error_logger_h_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/error_logger_h_SUITE.erl b/lib/stdlib/test/error_logger_h_SUITE.erl
index 2a34c7764f..30f96e0522 100644
--- a/lib/stdlib/test/error_logger_h_SUITE.erl
+++ b/lib/stdlib/test/error_logger_h_SUITE.erl
@@ -297,13 +297,13 @@ match_format(Tag, [Format,Args], [Head|Lines], AtNode, Depth) ->
iolist_to_binary(S)
end,
Expected0 = binary:split(Bin, <<"\n">>, [global,trim]),
- Expected = Expected0 ++ AtNode,
+ Expected = AtNode ++ Expected0,
match_term_lines(Expected, Lines).
match_term(Tag, [Arg], [Head|Lines], AtNode, Depth) ->
match_head(Tag, Head),
Expected0 = match_term_get_expected(Arg, Depth),
- Expected = Expected0 ++ AtNode,
+ Expected = AtNode ++ Expected0,
match_term_lines(Expected, Lines).
match_term_get_expected(List, Depth) when is_list(List) ->