aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/socket_test_logger.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-12-14 19:14:43 +0100
committerMicael Karlberg <[email protected]>2018-12-18 12:16:24 +0100
commit6781913e975e93a4a29d14e14794aae4526de9f7 (patch)
tree3ce36a1a32fefaa391499de2247803a581900876 /erts/emulator/test/socket_test_logger.erl
parent2f80f039958b4ec6ab3306df777b6b1a4872a495 (diff)
downloadotp-6781913e975e93a4a29d14e14794aae4526de9f7.tar.gz
otp-6781913e975e93a4a29d14e14794aae4526de9f7.tar.bz2
otp-6781913e975e93a4a29d14e14794aae4526de9f7.zip
[socket-nif|test] Add test case based on the ttest modules
Added a (first) test case based on the ttest modules. OTP-14831
Diffstat (limited to 'erts/emulator/test/socket_test_logger.erl')
-rw-r--r--erts/emulator/test/socket_test_logger.erl16
1 files changed, 14 insertions, 2 deletions
diff --git a/erts/emulator/test/socket_test_logger.erl b/erts/emulator/test/socket_test_logger.erl
index 5996bbe855..e42251158f 100644
--- a/erts/emulator/test/socket_test_logger.erl
+++ b/erts/emulator/test/socket_test_logger.erl
@@ -95,5 +95,17 @@ print(F, A) ->
print(?LIB:f(F, A)).
print(Str) ->
- io:format(user, Str ++ "~n", []),
- io:format(Str, []).
+ try
+ begin
+ io:format(user, Str ++ "~n", []),
+ io:format(Str, [])
+ end
+ catch
+ _:_:_ ->
+ io:format(user,
+ "~nFailed Format message:"
+ "~n~p~n", [Str]),
+ io:format("~nFailed Format message:"
+ "~n~p~n", [Str])
+ end.
+