[master] e62f61d Add missing call to VSL_Match
Federico G. Schwindt
fgsch at lodoss.net
Wed Mar 16 11:20:05 CET 2016
commit e62f61d50ed60c7a7bf4cb049dfdb9209d261469
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Tue Mar 15 20:47:27 2016 +0000
Add missing call to VSL_Match
With this you can also filter based on logexpect's vsl arguments.
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index cca71c8..0bc26a0 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -196,11 +196,13 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
int vxid, tag, type, len;
const char *legend, *data;
- (void)vsl;
CAST_OBJ_NOTNULL(le, priv, LOGEXP_MAGIC);
for (i = 0; (t = pt[i]); i++) {
while (1 == VSL_Next(t->c)) {
+ if (!VSL_Match(vsl, t->c))
+ continue;
+
CHECK_OBJ_NOTNULL(le->test, LOGEXP_TEST_MAGIC);
AN(t->c->rec.ptr);
vxid = VSL_ID(t->c->rec.ptr);
More information about the varnish-commit
mailing list