From: phk Date: Tue, 11 Nov 2008 20:40:37 +0000 (+0000) Subject: Fix this test-case to not rely on being able to compile /dev/null X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b23438333383d89565e1fbb22b58983e82bb65;p=varnish Fix this test-case to not rely on being able to compile /dev/null now that this is no longer possible. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3389 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00016.vtc b/varnish-cache/bin/varnishtest/tests/v00016.vtc index e154999a..a70a563f 100644 --- a/varnish-cache/bin/varnishtest/tests/v00016.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00016.vtc @@ -2,16 +2,20 @@ test "Various VCL compiler coverage tests" +shell "true > /tmp/_varnishtest_empty_file" + varnish v1 -vcl { backend b { .host = "127.0.0.1"; } - include "/dev/null" ; + include "/tmp/_varnishtest_empty_file" ; } varnish v1 -badvcl { backend b { .host = "127.0.0.1"; } - include "/dev/null" | + include "/tmp/_varnishtest_empty_file" | } +shell "rm -f /tmp/_varnishtest_empty_file" + varnish v1 -badvcl { backend b { .host = "127.0.0.1"; } include <<