aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-11-30 11:09:29 +0100
committerLukas Larsson <[email protected]>2011-12-02 15:08:11 +0100
commit62fffa75e2003b3f19eb7614307942028a400fd1 (patch)
tree305b22de7b5517a048d7f90a47f5bea8f87a512d /lib/kernel/test
parentfb8839de7ee499dfb4b534ad615114e01105e52c (diff)
downloadotp-62fffa75e2003b3f19eb7614307942028a400fd1.tar.gz
otp-62fffa75e2003b3f19eb7614307942028a400fd1.tar.bz2
otp-62fffa75e2003b3f19eb7614307942028a400fd1.zip
Add sendfile server printouts
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/sendfile_SUITE.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/kernel/test/sendfile_SUITE.erl b/lib/kernel/test/sendfile_SUITE.erl
index f7bb6fb85f..04af16a6b9 100644
--- a/lib/kernel/test/sendfile_SUITE.erl
+++ b/lib/kernel/test/sendfile_SUITE.erl
@@ -255,15 +255,20 @@ sendfile_do_recv(Sock, Bs) ->
nomatch when is_integer(Bs) ->
sendfile_do_recv(Sock, byte_size(B) + Bs);
_ when is_list(Bs) ->
+ ct:log("Stopped due to a 1"),
{ok, iolist_to_binary(lists:reverse([B|Bs]))};
_ when is_integer(Bs) ->
+ ct:log("Stopped due to a 1"),
{ok, byte_size(B) + Bs}
end;
{tcp_closed, Sock} when is_list(Bs) ->
+ ct:log("Stopped due to close"),
{ok, iolist_to_binary(lists:reverse(Bs))};
{tcp_closed, Sock} when is_integer(Bs) ->
+ ct:log("Stopped due to close"),
{ok, Bs}
after ?SENDFILE_TIMEOUT ->
+ ct:log("Sendfile timeout"),
timeout
end.