[master] 1bd283a fail err_shell test for exit status 0
Nils Goroll
nils.goroll at uplex.de
Tue Apr 14 18:55:17 CEST 2015
commit 1bd283ab15ce44b8cf743f1eafc9bb98697fca74
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Apr 14 18:26:04 2015 +0200
fail err_shell test for exit status 0
diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index a956052..c4c9fd5 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -455,6 +455,10 @@ cmd_err_shell(CMD_ARGS)
vtc_log(vl, 4, "Status = %d", WEXITSTATUS(r));
if (WIFSIGNALED(r))
vtc_log(vl, 4, "Signal = %d", WTERMSIG(r));
+ if (WEXITSTATUS(r) == 0) {
+ vtc_log(vl, 0,
+ "expected error from shell");
+ }
AZ(VSB_finish(vsb));
vtc_dump(vl, 4, "stdout", VSB_data(vsb), VSB_len(vsb));
if (strstr(VSB_data(vsb), av[1]) == NULL)
More information about the varnish-commit
mailing list