summaryrefslogtreecommitdiff
path: root/src/test/testing_common.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-14 18:14:08 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:49:29 -0500
commita57bcffcc7972419418b18d9a720a32471408ca5 (patch)
tree6a1c359d9f73fe7efc1192b7928dbf2924c875d7 /src/test/testing_common.c
parenta9806af2610904308642518990fc82c71d567d4a (diff)
downloadtor-a57bcffcc7972419418b18d9a720a32471408ca5.tar.gz
tor-a57bcffcc7972419418b18d9a720a32471408ca5.zip
Implement the various get_foodir_*() functions.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r--src/test/testing_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index e43fa46c84..142c681079 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -293,6 +293,9 @@ main(int c, const char **v)
setup_directory();
options_init(options);
options->DataDirectory = tor_strdup(temp_dir);
+ tor_asprintf(&options->KeyDirectory, "%s"PATH_SEPARATOR"keys",
+ options->DataDirectory);
+ options->CacheDirectory = tor_strdup(temp_dir);
options->EntryStatistics = 1;
if (set_options(options, &errmsg) < 0) {
printf("Failed to set initial options: %s\n", errmsg);