diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-24 20:16:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-24 20:38:02 -0400 |
commit | 06475f30e95133e89d58bb42a33cef5627b5f29f (patch) | |
tree | d09503930a4990ef1f609e04a6b1fc6aa769f19f /src/test/testing_common.c | |
parent | 4d53bbeafb70735690058ccc8acfb81366e7f579 (diff) | |
download | tor-06475f30e95133e89d58bb42a33cef5627b5f29f.tar.gz tor-06475f30e95133e89d58bb42a33cef5627b5f29f.zip |
tests: set DataDirectory_option as well as DataDirectory.
options_validate_cb() derives DataDirectory (which we use) from
DataDirectory_option (which the user sets). I want to add a test
that will call options_validate_cb(), but it will fail unless it
derives the same value.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r-- | src/test/testing_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index e14a169407..c5a4e81fbe 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -326,6 +326,7 @@ main(int c, const char **v) initialize_mainloop_events(); options_init(options); options->DataDirectory = tor_strdup(temp_dir); + options->DataDirectory_option = tor_strdup(temp_dir); tor_asprintf(&options->KeyDirectory, "%s"PATH_SEPARATOR"keys", options->DataDirectory); options->CacheDirectory = tor_strdup(temp_dir); |