aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir_handle_get.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/test_dir_handle_get.c
parenta9806af2610904308642518990fc82c71d567d4a (diff)
downloadtor-a57bcffcc7972419418b18d9a720a32471408ca5.tar.gz
tor-a57bcffcc7972419418b18d9a720a32471408ca5.zip
Implement the various get_foodir_*() functions.
Diffstat (limited to 'src/test/test_dir_handle_get.c')
-rw-r--r--src/test/test_dir_handle_get.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index fe26657ad8..28ecc14c49 100644
--- a/src/test/test_dir_handle_get.c
+++ b/src/test/test_dir_handle_get.c
@@ -469,6 +469,7 @@ init_mock_options(void)
memset(mock_options, 0, sizeof(or_options_t));
mock_options->TestingTorNetwork = 1;
mock_options->DataDirectory = tor_strdup(get_fname_rnd("datadir_tmp"));
+ mock_options->CacheDirectory = tor_strdup(mock_options->DataDirectory);
check_private_dir(mock_options->DataDirectory, CPD_CREATE, NULL);
}