]> err.no Git - varnish/commitdiff
Fix this test-case to not rely on being able to compile /dev/null
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 20:40:37 +0000 (20:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 20:40:37 +0000 (20:40 +0000)
now that this is no longer possible.

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

varnish-cache/bin/varnishtest/tests/v00016.vtc

index e154999acc113c598760d61adf89e90897921e5c..a70a563f021c881676bdfebfb3ca52721b554b5a 100644 (file)
@@ -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 <<