[master] 8539170 Return 1 to VSL_Dispatch on completing the test script.

Martin Blix Grydeland martin at varnish-cache.org
Tue Oct 1 14:48:17 CEST 2013


commit 853917027d2c4197c362325d9960e6f2b0a4b076
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Wed Sep 18 11:06:54 2013 +0200

    Return 1 to VSL_Dispatch on completing the test script.
    
    Return 1 on completing the test script. This will prevent the API from
    reporting any more transactions matching the query, which would
    trigger an assert.

diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index c0a21c4..f2170b2 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -247,7 +247,7 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 				logexp_next(le);
 				if (le->test == NULL)
 					/* End of test script */
-					return (0);
+					return (1);
 			}
 			if (skip)
 				le->skip_cnt++;



More information about the varnish-commit mailing list