]> err.no Git - varnish/commitdiff
Testcase for old backend syntax.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 21:06:55 +0000 (21:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 21:06:55 +0000 (21:06 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2890 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00002.vtc
varnish-cache/lib/libvcl/vcc_backend.c

index db1f91c02d51957cf223683c4106db416ec3ac50..8a4cdc560a7dd7702ed6d1d4170d47842ef2b6f1 100644 (file)
@@ -70,7 +70,6 @@ varnish v1 -badvcl {
        backend b-1 { .host = "127.0.0.2"; }
 }
 
-# Assign backend by non-C-compat name
 # Check backend reference by non-C-compat name
 varnish v1 -badvcl {
        backend b1 { .host = "127.0.0.2"; }
@@ -78,3 +77,11 @@ varnish v1 -badvcl {
                set req.backend = b-1;
        }
 }
+
+# Old backend syntax
+
+varnish v1 -badvcl {
+       backend b1 {
+               set host = "localhost";
+       }
+}
index 70fba9c5812f84743af17368a4ea1a8176710a6f..2a83988a7cfc99c16eb6126aa5ebf853bae30716 100644 (file)
@@ -259,7 +259,7 @@ vcc_ParseHostDef(struct tokenlist *tl, int *nbh, const struct token *name, const
                    "Remove \"set\" and \"backend\" in front"
                    " of backend fields.\n" );
                vcc_ErrToken(tl, tl->t);
-               vsb_printf(tl->sb, " at\n");
+               vsb_printf(tl->sb, " at ");
                vcc_ErrWhere(tl, tl->t);
                return;
        }