test_confparse: verify that clearing a routerset sets it to NULL.

This commit is contained in:
Nick Mathewson 2019-08-28 12:28:17 -04:00
parent f0c1f96adc
commit 1ef084c5fc

View file

@ -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);
}