Commit 3038404d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Testcase for old backend syntax.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2890 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 994c5972
......@@ -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";
}
}
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment