Test that we capture stderr

parent 32258d50
......@@ -2,10 +2,13 @@
while read line
do
echo >&2 append $1 while read
echo $line
sleep 1
echo append $1
done
echo >&2 append $1 before final
echo final $1
echo >&2 append $1 after final
exit 0
......@@ -27,6 +27,17 @@ varnish v1 -arg "-p debug=+syncvsl" -vcl+backend {
}
} -start
logexpect l1001 -v v1 -q "vxid == 1001" -i Error {
expect 0 1001 Error "stderr: append 1 while read$"
expect 0 = Error "stderr: append 2 while read$"
expect 0 = Error "stderr: append 2 while read$"
expect 0 = Error "stderr: append 2 while read$"
expect ? = Error "stderr: append 2 before final$"
expect ? = Error "stderr: append 2 after final$"
expect ? = Error "stderr: append 1 before final$"
expect ? = Error "stderr: append 1 after final$"
} -start
client c1 {
txreq
rxresp
......@@ -41,3 +52,5 @@ final 2
}
} -run
logexpect l1001 -wait
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment