diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-23 10:41:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-28 09:40:46 -0400 |
commit | 3d1f9f583a45143c1259b8926f8c57fa57fc1efb (patch) | |
tree | 06d4674b5bb6c95e401c2c35d7f42ca643e787dc /src/test/test_confparse.c | |
parent | 57e87cc86cce0b9fb351b1862f99c84bfa8100eb (diff) | |
download | tor-3d1f9f583a45143c1259b8926f8c57fa57fc1efb.tar.gz tor-3d1f9f583a45143c1259b8926f8c57fa57fc1efb.zip |
Use special magic to enforce manager/object connection.
Every time we finalize a config manager, we now generate a new magic
number for it, so that we'll get an assertion failure if we ever try
to use an object with a different configuration manager than the one
that generated it.
Diffstat (limited to 'src/test/test_confparse.c')
-rw-r--r-- | src/test/test_confparse.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/test_confparse.c b/src/test/test_confparse.c index 1513c9323b..78eb3d38bf 100644 --- a/src/test/test_confparse.c +++ b/src/test/test_confparse.c @@ -158,7 +158,6 @@ test_confparse_init(void *arg) config_init(mgr, tst); // Make sure that options are initialized right. */ - tt_uint_op(tst->magic, OP_EQ, TEST_MAGIC); tt_str_op(tst->s, OP_EQ, "hello"); tt_ptr_op(tst->fn, OP_EQ, NULL); tt_int_op(tst->pos, OP_EQ, 0); |