summaryrefslogtreecommitdiff
path: root/common/test.h
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-17 09:51:32 +0200
committerStef Walter <stef@thewalter.net>2013-07-18 08:13:20 +0200
commit81a6e16539e5e4a27c55194ae095cc4a75d08ade (patch)
tree70e409e938e60c326f95d85ac059efb58f48286a /common/test.h
parenteb8f5859b1349f8147ba47a1da8032df192f2370 (diff)
tools: Use $TMPDIR instead of $TEMP
TMPDIR is a more standard environment variable for locating the temp directory on Unix. In addition since this is only used in tests, remove the code from the generic p11_path_expand() func. In general remove the possibility for forks to put $HOME or $TEMP environment variables in configured paths. This was possible due to code in p11_path_expand() but not something we supported. https://bugzilla.redhat.com/show_bug.cgi?id=985017
Diffstat (limited to 'common/test.h')
-rw-r--r--common/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/test.h b/common/test.h
index 1da3608..7354595 100644
--- a/common/test.h
+++ b/common/test.h
@@ -128,4 +128,6 @@ void p11_fixture (void (* setup) (void *),
int p11_test_run (int argc,
char **argv);
+char * p11_test_directory (const char *prefix);
+
#endif /* P11_TEST_H_ */