talloc: Use libraries from build dir for testsuite
[sfrench/samba-autobuild/.git] / lib / talloc / wscript
index df7e6be55939a1aa9004e2decb65768387fb4b60..90839ad8f69a587051bc9cb75dcb4ca7eb837314 100644 (file)
@@ -171,6 +171,10 @@ def build(bld):
 def test(ctx):
     '''run talloc testsuite'''
     import Utils, samba_utils
+
+    samba_utils.ADD_LD_LIBRARY_PATH('bin/shared')
+    samba_utils.ADD_LD_LIBRARY_PATH('bin/shared/private')
+
     cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
     ret = samba_utils.RUN_COMMAND(cmd)
     print("testsuite returned %d" % ret)