[master] 74d4f0f Enable batch record usage in logexpect

Martin Blix Grydeland martin at varnish-software.com
Tue Sep 9 14:29:15 CEST 2014


commit 74d4f0f15ebf53220d93888c6be42462070e1ed4
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Sep 1 13:13:30 2014 +0200

    Enable batch record usage in logexpect
    
    This enables catching batch related log problems using logexpect.
    
    This commit will make several test cases start failing until #1588 has been fixed.

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);



More information about the varnish-commit mailing list