[master] 4c9b097 Move setenv to vtc_fatal

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Mar 8 20:28:05 CET 2017


commit 4c9b097f035cee98ed21817d66e911af901573fd
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Mar 8 20:01:23 2017 +0100

    Move setenv to vtc_fatal

diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index cf5e051..518635d 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -628,7 +628,7 @@ cmd_setenv(CMD_ARGS)
 		AN(av[2]);
 	}
 	if (av[3] != NULL)
-		vtc_log(vl, 0, "CMD setenv: Unexpected argument '%s'", av[3]);
+		vtc_fatal(vl, "CMD setenv: Unexpected argument '%s'", av[3]);
 	r = setenv(av[1], av[2], force);
 	if (r != 0)
 		vtc_log(vl, 0, "CMD setenv %s=\"%s\" failed: %s",



More information about the varnish-commit mailing list