aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/socket_test_lib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-12-13 16:38:52 +0100
committerMicael Karlberg <[email protected]>2018-12-14 12:03:05 +0100
commitaed92219aacf962a9d6c71ea448809fe2c9acae6 (patch)
tree0c7ee62dfbf9dce930433b94785cf50911b10720 /erts/emulator/test/socket_test_lib.erl
parent73eae9c9c3e458d6d6cffb0cdbfb6ce80a340be1 (diff)
downloadotp-aed92219aacf962a9d6c71ea448809fe2c9acae6.tar.gz
otp-aed92219aacf962a9d6c71ea448809fe2c9acae6.tar.bz2
otp-aed92219aacf962a9d6c71ea448809fe2c9acae6.zip
[socket-nif|test] Add a "global" logger
Added a global logger that make it possible to log from the slave nodes (with "ease"). Also "fixed" the test case that failed on "older" linux (Ubuntu 14.04). For now we let it skip instead (we should really check the OS version). Also corrected a couple of (ping-pong) cases for which the buffer adjustments did not work. OTP-14831
Diffstat (limited to 'erts/emulator/test/socket_test_lib.erl')
-rw-r--r--erts/emulator/test/socket_test_lib.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_test_lib.erl b/erts/emulator/test/socket_test_lib.erl
index c36cc4fbfa..f55f338ef9 100644
--- a/erts/emulator/test/socket_test_lib.erl
+++ b/erts/emulator/test/socket_test_lib.erl
@@ -27,13 +27,15 @@
formated_timestamp/0,
format_timestamp/1,
+ %% String and format
+ f/2,
+
%% Skipping
not_yet_implemented/0,
skip/1
]).
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
timestamp() ->
@@ -62,6 +64,12 @@ format_timestamp({_N1, _N2, _N3} = TS) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+f(F, A) ->
+ lists:flatten(io_lib:format(F, A)).
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
not_yet_implemented() ->
skip("not yet implemented").