Commit 175af0b9 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Big bang rewrite of m00049.vtc

Now that vtc.typesize() is a bit more reliable, it's easier to deal with
architecture differences for the sizeof struct vrt_blob. For a much more
reliable failure check, it now looks at logs.

There may also have been a time when depending on the error we trigger
we could fail with a 500 or a 503, this is no longer the case.

For the nitty-gritty of the new test case, there are some comments to
hopefully help (at least my future self) decipher this beast.

This new test case remains stable even with the changes from #3123.
parent 27bed0ed
This diff is collapsed.
......@@ -534,6 +534,6 @@ vmod_sub(VRT_CTX, VCL_BLOB b, VCL_BYTES n, VCL_BYTES off)
return null_blob;
return (VRT_blob(ctx, "blob.sub()",
return (VRT_blob(ctx, "blob.sub",
(const char *)b->blob + off, n, b->type));
}
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