aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-23 11:32:52 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-28 09:40:53 -0400
commit38b770bbbb37aef6cd3cef5fd6f425cd951affe2 (patch)
tree65a613a67a7f9baf09c4f8cdcbe1e7efb8b613bb /src/test/test_confparse.c
parent47654d32497acae23aafbe3316ae73d3c00429c8 (diff)
downloadtor-38b770bbbb37aef6cd3cef5fd6f425cd951affe2.tar.gz
tor-38b770bbbb37aef6cd3cef5fd6f425cd951affe2.zip
Make a config_suite_t type to hold multiple config sub-objects
Right now, it doesn't do anything; this patch is meant to make sure that we're doing memory management correctly.
Diffstat (limited to 'src/test/test_confparse.c')
-rw-r--r--src/test/test_confparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_confparse.c b/src/test/test_confparse.c
index 273232fe5d..eaa257aedd 100644
--- a/src/test/test_confparse.c
+++ b/src/test/test_confparse.c
@@ -134,6 +134,7 @@ static const config_format_t test_fmt = {
test_validate_cb,
NULL,
NULL,
+ -1,
};
/* Make sure that config_init sets everything to the right defaults. */
@@ -815,6 +816,7 @@ static config_format_t etest_fmt = {
test_validate_cb,
NULL,
&extra,
+ -1,
};
/* Try out the feature where we can store unrecognized lines and dump them