summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2edc62)
raw | patch | inline | side by side (parent: a2edc62)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 12 Jan 2014 17:29:41 +0000 (18:29 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 12 Jan 2014 17:29:41 +0000 (18:29 +0100) |
They generate unnecessary noise in LLVM's AddressSanitizer runs.
t/core/object_test.c | patch | blob | history |
diff --git a/t/core/object_test.c b/t/core/object_test.c
index b741b6cb6bb88b6f0b8e844cfc75c16207a20414..844dbc19982678484d46ff701011f5ba70250025 100644 (file)
--- a/t/core/object_test.c
+++ b/t/core/object_test.c
"sdb_object_create() did not initialize data to zero");
sdb_object_deref(obj);
- /* the memory address at 'obj' is no longer valid but usually this check
- * should still work */
- fail_unless(obj->ref_cnt == 0,
- "after sdb_object_deref(): obj->ref_cnt = %d; expected: 0",
- obj->ref_cnt);
fail_unless(destroy_noop_called == 1,
"sdb_object_deref() did not call object's destroy function");
/* test_obj_create already checks the ref_cnt == 1 case */
obj->ref_cnt = 0;
sdb_object_deref(obj);
- fail_unless(obj->ref_cnt <= 0,
- "after db_object_deref(): obj->ref_cnt = %d; expected: <= 0",
- obj->ref_cnt);
-
fail_unless(init_noop_called == 1,
"after some sdb_object_{de,}ref(); object's init called %d times; "
"expected: 1", init_noop_called);