diff options
author | Micael Karlberg <[email protected]> | 2018-12-14 19:14:43 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-12-18 12:16:24 +0100 |
commit | 6781913e975e93a4a29d14e14794aae4526de9f7 (patch) | |
tree | 3ce36a1a32fefaa391499de2247803a581900876 /erts/emulator/test/socket_test_logger.erl | |
parent | 2f80f039958b4ec6ab3306df777b6b1a4872a495 (diff) | |
download | otp-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.erl | 16 |
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. + |