Commit 4b4bb1aa authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Try to fix c98 and c99 the same way.

The trick here is that these tests depend on c1 getting in front of
c2... and that cannot be assumed given random thread scheduling algorithms,
it must be enforced with barriers
parent 75fdb792
varnishtest "Hit-for-pass and waitinglist rushing"
barrier b2 cond 6
barrier b3 cond 6
server s1 {
rxreq
......@@ -80,30 +81,36 @@ varnish v1 -arg "-p thread_pool_min=20" -arg "-p rush_exponent=2" -arg "-p debug
client c1 {
txreq -url /hfp -hdr "Client: 1"
rxresp
rxresp -no_obj
barrier b3 sync
} -start
client c2 {
barrier b3 sync
txreq -url /hfp -hdr "Client: 2"
rxresp
} -start
client c3 {
barrier b3 sync
txreq -url /hfp -hdr "Client: 3"
rxresp
} -start
client c4 {
barrier b3 sync
txreq -url /hfp -hdr "Client: 4"
rxresp
} -start
client c5 {
barrier b3 sync
txreq -url /hfp -hdr "Client: 5"
rxresp
} -start
client c6 {
barrier b3 sync
txreq -url /hfp -hdr "Client: 6"
rxresp
} -start
......
varnishtest "Hit-for-miss and waitinglist rushing"
barrier b3 cond 6
barrier b4 cond 6
server s1 {
rxreq
......@@ -80,30 +81,36 @@ varnish v1 -arg "-p thread_pool_min=20" -arg "-p rush_exponent=2" -arg "-p debug
client c1 {
txreq -url /hfm -hdr "Client: 1"
rxresp
rxresp -no_obj
barrier b4 sync
} -start
client c2 {
barrier b4 sync
txreq -url /hfm -hdr "Client: 2"
rxresp
} -start
client c3 {
barrier b4 sync
txreq -url /hfm -hdr "Client: 3"
rxresp
} -start
client c4 {
barrier b4 sync
txreq -url /hfm -hdr "Client: 4"
rxresp
} -start
client c5 {
barrier b4 sync
txreq -url /hfm -hdr "Client: 5"
rxresp
} -start
client c6 {
barrier b4 sync
txreq -url /hfm -hdr "Client: 6"
rxresp
} -start
......
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