]> err.no Git - varnish/commitdiff
Repeat after me: test after fixing.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 2 Sep 2008 20:20:48 +0000 (20:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 2 Sep 2008 20:20:48 +0000 (20:20 +0000)
Try to nail r297 again

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3157 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_server.c

index 0948ac2205cef2bb44d6aedfbb944016a4b6d1e4..c2177223a56e65e1b45b70528dc7e82330d44eeb 100644 (file)
@@ -97,7 +97,7 @@ server_thread(void *priv)
                vtc_log(vl, 3, "Accepted socket fd is %d", fd);
                http_process(vl, s->spec, fd, 0);
                vtc_log(vl, 3, "shutting fd %d", fd);
-               assert(shutdown(fd, SHUT_WR) || errno == ENOTCONN);
+               assert((shutdown(fd, SHUT_WR) == 0) || errno == ENOTCONN);
                TCP_close(&fd);
        }
        vtc_log(vl, 2, "Ending");