aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2014-01-22 16:19:00 +0100
committerPeter Andersson <[email protected]>2014-01-27 19:38:10 +0100
commitda730dc3f7a6e46c0341146a69871934d07120e0 (patch)
treef2f1f1f22ff32dfbe85d95966f810fd50578825a /lib/common_test/src
parent584f9ec69fea19e1fed4a37699cb83e0d3c9bf94 (diff)
downloadotp-da730dc3f7a6e46c0341146a69871934d07120e0.tar.gz
otp-da730dc3f7a6e46c0341146a69871934d07120e0.tar.bz2
otp-da730dc3f7a6e46c0341146a69871934d07120e0.zip
Add and improve test cases
Also correct some issues found during test
Diffstat (limited to 'lib/common_test/src')
-rw-r--r--lib/common_test/src/ct_conn_log_h.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_conn_log_h.erl b/lib/common_test/src/ct_conn_log_h.erl
index 550f62f4c1..286844d526 100644
--- a/lib/common_test/src/ct_conn_log_h.erl
+++ b/lib/common_test/src/ct_conn_log_h.erl
@@ -200,8 +200,13 @@ pretty_head({{{Y,Mo,D},{H,Mi,S}},MicroS},ConnMod,Text0) ->
micro2milli(MicroS)]).
pretty_title(#conn_log{client=Client}=Info) ->
- io_lib:format("= Client ~w ~s Server ~ts ",
- [Client,actionstr(Info),serverstr(Info)]).
+ case actionstr(Info) of
+ {no_server,Action} ->
+ io_lib:format("= Client ~w ~s ",[Client,Action]);
+ Action ->
+ io_lib:format("= Client ~w ~s ~ts ",[Client,Action,
+ serverstr(Info)])
+ end.
actionstr(#conn_log{action=send}) -> "----->";
actionstr(#conn_log{action=cmd}) -> "----->";