Test that we capture stderr

parent ae6c25d0
...@@ -2,10 +2,13 @@ ...@@ -2,10 +2,13 @@
while read line while read line
do do
echo >&2 append $1 while read
echo $line echo $line
sleep 1 sleep 1
echo append $1 echo append $1
done done
echo >&2 append $1 before final
echo final $1 echo final $1
echo >&2 append $1 after final
exit 0 exit 0
...@@ -27,6 +27,17 @@ varnish v1 -arg "-p debug=+syncvsl" -vcl+backend { ...@@ -27,6 +27,17 @@ varnish v1 -arg "-p debug=+syncvsl" -vcl+backend {
} }
} -start } -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 ? = 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 { client c1 {
txreq txreq
rxresp rxresp
...@@ -41,3 +52,5 @@ final 2 ...@@ -41,3 +52,5 @@ final 2
} }
} -run } -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