diff options
author | Peter Andersson <[email protected]> | 2014-01-22 16:19:00 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2014-01-27 19:38:10 +0100 |
commit | da730dc3f7a6e46c0341146a69871934d07120e0 (patch) | |
tree | f2f1f1f22ff32dfbe85d95966f810fd50578825a /lib/common_test/src | |
parent | 584f9ec69fea19e1fed4a37699cb83e0d3c9bf94 (diff) | |
download | otp-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.erl | 9 |
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}) -> "----->"; |