[4.0] 4621557 Enable batch record usage in logexpect

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


commit 4621557d63202c399c8c6f50b291f588868b324d
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