summaryrefslogtreecommitdiff
path: root/lib/ldb/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-05-07 12:59:00 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-09 04:29:48 +0200
commitf891b8dc32d24eea81ee5fe6ace02c1cf7129443 (patch)
tree92fae18adb775171c91f62c9531ef5541670a95f /lib/ldb/wscript
parent21366649410c29904a463b57e7d8688ce6e11381 (diff)
downloadsamba-f891b8dc32d24eea81ee5fe6ace02c1cf7129443.tar.gz
ldb: Add tests for ldb_tdb use after a fork()
We need to show that despite the internal cache of TDB pointers that it is safe to open a ldb_tdb after a fork() Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'lib/ldb/wscript')
-rw-r--r--lib/ldb/wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
index 35549d528fd..0a4eea86c6e 100644
--- a/lib/ldb/wscript
+++ b/lib/ldb/wscript
@@ -374,6 +374,11 @@ def build(bld):
deps='cmocka ldb',
install=False)
+ bld.SAMBA_BINARY('ldb_tdb_test',
+ source='tests/ldb_tdb_test.c',
+ deps='cmocka ldb',
+ install=False)
+
bld.SAMBA_BINARY('ldb_msg_test',
source='tests/ldb_msg.c',
deps='cmocka ldb',
@@ -416,7 +421,8 @@ def test(ctx):
'ldb_tdb_mod_op_test',
'ldb_tdb_guid_mod_op_test',
'ldb_msg_test',
- 'ldb_tdb_kv_ops_test']:
+ 'ldb_tdb_kv_ops_test',
+ 'ldb_tdb_test']:
cmd = os.path.join(Utils.g_module.blddir, test_exe)
cmocka_ret = cmocka_ret or samba_utils.RUN_COMMAND(cmd)