[master] e1a2c7f Define a ${pwd} macro, it's usefull for ad-hoc tests

Poul-Henning Kamp phk at varnish-cache.org
Sat Jan 29 12:08:00 CET 2011


commit e1a2c7feff4e2952bd7a54919569690aa4139295
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jan 29 11:07:18 2011 +0000

    Define a ${pwd} macro, it's usefull for ad-hoc tests

diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index 66990e4..f601dbc 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -492,6 +492,9 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
 	bprintf(topbuild, "%s/%s", cwd, TOP_BUILDDIR);
 	macro_def(vltop, NULL, "topbuild", topbuild);
 
+	AN(getcwd(topbuild, sizeof topbuild));
+	macro_def(vltop, NULL, "pwd", topbuild);
+
 	macro_def(vltop, NULL, "bad_ip", "10.255.255.255");
 
 	/* Move into our tmpdir */



More information about the varnish-commit mailing list