diff options
Diffstat (limited to 'tools/tests/test-x509.c')
-rw-r--r-- | tools/tests/test-x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/tests/test-x509.c b/tools/tests/test-x509.c index 138e6b7..e952e53 100644 --- a/tools/tests/test-x509.c +++ b/tools/tests/test-x509.c @@ -42,6 +42,7 @@ #include "extract.h" #include "message.h" #include "mock.h" +#include "path.h" #include "pkcs11.h" #include "pkcs11x.h" #include "oid.h" @@ -75,7 +76,7 @@ setup (CuTest *tc) p11_extract_info_init (&test.ex); - test.directory = strdup ("/tmp/test-extract.XXXXXX"); + test.directory = p11_path_expand ("$TEMP/test-extract.XXXXXX"); if (!mkdtemp (test.directory)) CuFail (tc, "mkdtemp() failed"); } |