diff options
author | Ralph Boehme <slow@samba.org> | 2019-04-21 08:38:23 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-08 20:24:32 +0000 |
commit | 9e706ee5737bffd6f0a699ce68a75bbd0f7fd7dd (patch) | |
tree | 8590d6d15cdf9bbb990f2ef57718881116598e19 /testsuite | |
parent | 0b1d9d40c249ca7f893cbcc54587ae8fc93f15ee (diff) | |
download | samba-9e706ee5737bffd6f0a699ce68a75bbd0f7fd7dd.tar.gz |
unittest: workaround dependency problem in test_lib_util_modules
waf somehow screws the dependencies and the module ends up with a bunch of
missing RPC related symbols once an RPC service has special dependencies like
the mdssvc RPC service.
$ bin/test_lib_util_modules
test: test_samba_module_probe
success: test_samba_module_probe
test: test_samba_module_probe_dummy
Error loading module '/home/samba/src/bin/modules/rpc/test_dummy_module.so':
/home/samba/src/bin/modules/rpc/test_dummy_module.so: undefined symbol:
rpc_service_mode
failure: test_samba_module_probe_dummy [
NT_STATUS_IS_OK(status)
../../testsuite/unittests/test_lib_util_modules.c:39: error: Failure!
]
test: test_samba_module_probe_slash
success: test_samba_module_probe_slash
This is currently not noticed as mdssvc is not enabled in selftest, but that is
going to change with a subsequent commit.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/unittests/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/unittests/wscript b/testsuite/unittests/wscript index 561cb4bebad..40fcb01ad57 100644 --- a/testsuite/unittests/wscript +++ b/testsuite/unittests/wscript @@ -30,7 +30,7 @@ def build(bld): bld.SAMBA_MODULE('rpc_test_dummy_module', source='rpc_test_dummy_module.c', - deps='ndr', + deps='ndr smbd_base', subsystem='rpc', allow_undefined_symbols=True, init_function='', |