git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45de51
)
ldb tests: fix assertion on wrong pointer
author
Timur I. Bakeyev
<timur@freebsd.org>
Mon, 13 Aug 2018 22:40:33 +0000
(10:40 +1200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 14 Aug 2018 17:08:25 +0000
(19:08 +0200)
We are allocating msg02, but check in assertion msg01, which makes no
sense here.
Signed-off-by: Timur I. Bakeyev <timur@freebsd.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/ldb/tests/ldb_mod_op_test.c
patch
|
blob
|
history
diff --git
a/lib/ldb/tests/ldb_mod_op_test.c
b/lib/ldb/tests/ldb_mod_op_test.c
index 01667af38653242dc30019da36698827d716c695..924c80a14b7610957498c7911dbd59e908fa0388 100644
(file)
--- a/
lib/ldb/tests/ldb_mod_op_test.c
+++ b/
lib/ldb/tests/ldb_mod_op_test.c
@@
-3973,7
+3973,7
@@
static void test_ldb_unique_index_duplicate_with_guid(void **state)
assert_int_equal(ret, LDB_SUCCESS);
msg02 = ldb_msg_new(tmp_ctx);
- assert_non_null(msg0
1
);
+ assert_non_null(msg0
2
);
msg02->dn = ldb_dn_new_fmt(msg02, test_ctx->ldb, "dc=test02");
assert_non_null(msg02->dn);