[master] 5858dea varnishtest: logexpect only attempts regex matches for matching tags
Martin Blix Grydeland
martin at varnish-cache.org
Tue Oct 15 12:53:00 CEST 2013
commit 5858deaae774b935d7389d08a767e7c517c57b1c
Author: Geoff Simmons <geoff at uplex.de>
Date: Thu Oct 10 10:58:37 2013 +0200
varnishtest: logexpect only attempts regex matches for matching tags
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index 8a0f384..cbee6c0 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -217,6 +217,8 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
ok = 0;
}
if (le->test->vre &&
+ le->test->tag >= 0 &&
+ le->test->tag == tag &&
VRE_ERROR_NOMATCH == VRE_exec(le->test->vre, data,
len, 0, 0, NULL, 0, NULL))
ok = 0;
More information about the varnish-commit
mailing list