aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-16 10:08:24 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-16 10:08:24 -0400
commitd9ceab5bc3611fa6ed4e2f58d38ff26860eeeb3c (patch)
treeaaa30f6162272c0eb1c940df4579f57400ecf7aa /src/test/test_util.c
parentd5ccaa6e2b8c73a1d9d43b82c782c7b10557fe5c (diff)
downloadtor-d9ceab5bc3611fa6ed4e2f58d38ff26860eeeb3c.tar.gz
tor-d9ceab5bc3611fa6ed4e2f58d38ff26860eeeb3c.zip
Fix some remaining nmake/msvc build issues
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index b5b40bba91..d9fc6a33c5 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -2263,6 +2263,9 @@ test_util_spawn_background_ok(void *ptr)
static void
test_util_spawn_background_fail(void *ptr)
{
+#ifndef BUILDDIR
+#define BUILDDIR "."
+#endif
const char *argv[] = {BUILDDIR "/src/test/no-such-file", "--test", NULL};
const char *expected_err = "";
char expected_out[1024];