diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-08-28 12:28:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-28 12:28:17 -0400 |
commit | 1ef084c5fcc5f9185f05a71e7ca09fd88cfb641c (patch) | |
tree | c9d6d5d5f5141657893b5bfa6bb1d5213651654a /src/test/test_confparse.c | |
parent | f0c1f96adcc049c49f7784645a5b197c8b3e44af (diff) | |
download | tor-1ef084c5fcc5f9185f05a71e7ca09fd88cfb641c.tar.gz tor-1ef084c5fcc5f9185f05a71e7ca09fd88cfb641c.zip |
test_confparse: verify that clearing a routerset sets it to NULL.
Diffstat (limited to 'src/test/test_confparse.c')
-rw-r--r-- | src/test/test_confparse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_confparse.c b/src/test/test_confparse.c index ec018f0c52..4df275fc36 100644 --- a/src/test/test_confparse.c +++ b/src/test/test_confparse.c @@ -592,6 +592,10 @@ test_confparse_reset(void *arg) config_reset_line(&test_fmt, tst, "interval", 1); tt_int_op(tst->interval, OP_EQ, 10); + tt_ptr_op(tst->routerset, OP_NE, NULL); + config_reset_line(&test_fmt, tst, "routerset", 0); + tt_ptr_op(tst->routerset, OP_EQ, NULL); + done: config_free(&test_fmt, tst); } |