[PATCH 1/2] Enable batch record usage in logexpect
Martin Blix Grydeland
martin at varnish-software.com
Mon Sep 1 14:02:35 CEST 2014
This enables catching batch related log problems using logexpect.
This commit will make several test cases start failing until #1588 has been fixed.
---
bin/varnishtest/vtc_logexp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index d868a1b..a2b6323 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -330,7 +330,8 @@ logexp_start(struct logexp *le)
}
le->vsl = VSL_New();
AN(le->vsl);
- c = VSL_CursorVSM(le->vsl, le->vsm, le->d_arg ? 0 : VSL_COPT_TAIL);
+ c = VSL_CursorVSM(le->vsl, le->vsm,
+ (le->d_arg ? 0 : VSL_COPT_TAIL) | VSL_COPT_BATCH);
if (c == NULL) {
vtc_log(le->vl, 0, "VSL_CursorVSM: %s", VSL_Error(le->vsl));
logexp_close(le);
--
2.1.0
More information about the varnish-dev
mailing list