From a63311a0f3f2669138d09ff8f618fd4d12fa0c3d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 3 Apr 2013 10:50:59 +0200 Subject: More compatible path munging and handling code Centralize the path handling code, so we can remove unixy assumptions and have a chance of running on Windows. The current goal is to run all the tests on Windows. Includes some code from LRN https://bugs.freedesktop.org/show_bug.cgi?id=63062 --- tools/tests/test-save.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/tests/test-save.c') diff --git a/tools/tests/test-save.c b/tools/tests/test-save.c index d686bd6..b739c21 100644 --- a/tools/tests/test-save.c +++ b/tools/tests/test-save.c @@ -40,6 +40,7 @@ #include "debug.h" #include "dict.h" #include "message.h" +#include "path.h" #include "save.h" #include "test.h" @@ -62,7 +63,7 @@ struct { static void setup (CuTest *tc) { - test.directory = strdup ("/tmp/test-extract.XXXXXX"); + test.directory = p11_path_expand ("$TEMP/test-extract.XXXXXX"); if (!mkdtemp (test.directory)) CuFail (tc, "mkdtemp() failed"); } -- cgit v1.1