Commit 9284b8b6 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Rework test to work in both 32 and 64 bits

parent dff3c2be
varnishtest "Fail earlier if we cannot fit the query string"
feature 64bit
server s1 {
rxreq
txresp
} -start
varnish v1 -arg "-p workspace_client=9k" -vcl+backend {
varnish v1 -vcl+backend {
import debug;
import std;
sub vcl_recv {
set req.url = std.querysort(req.url);
debug.workspace_allocate(client, -92);
if (std.querysort(req.url) == req.url) {
std.log("querysort failed");
}
}
} -start
logexpect l1 -v v1 {
expect * * VCL_Log "querysort failed"
} -start
client c1 {
send "GET /?a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send "&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send "&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send " HTTP/1.1\r\n"
send "Host: foo\r\n\r\n"
txreq -url /?a=2&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1
rxresp
expect resp.status == 500
} -run
logexpect l1 -wait
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