diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-15 14:52:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-15 14:52:08 -0400 |
commit | 82a3161c41e2c8d8d800a8c645a93b81bd8b2278 (patch) | |
tree | e53f5d7dd93b883eec15a5c403f7cc81dfdf2abd /src/test/test_containers.c | |
parent | 670d0f9f5bb7d73ad236a035ed7bd69e96cadd41 (diff) | |
download | tor-82a3161c41e2c8d8d800a8c645a93b81bd8b2278.tar.gz tor-82a3161c41e2c8d8d800a8c645a93b81bd8b2278.zip |
Document check for 30176, since it's a bit subtle.
Diffstat (limited to 'src/test/test_containers.c')
-rw-r--r-- | src/test/test_containers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_containers.c b/src/test/test_containers.c index ad272eeaf5..67ba457975 100644 --- a/src/test/test_containers.c +++ b/src/test/test_containers.c @@ -1006,6 +1006,9 @@ test_container_smartlist_remove(void *arg) tt_ptr_op(smartlist_get(sl, 1), OP_EQ, &array[2]); tt_ptr_op(smartlist_get(sl, 2), OP_EQ, &array[1]); tt_ptr_op(smartlist_get(sl, 3), OP_EQ, &array[2]); + /* Ordinary code should never look at this pointer; we're doing it here + * to make sure that we really cleared the pointer we removed. + */ tt_ptr_op(sl->list[4], OP_EQ, NULL); done: |