talloc: simplifiy the logic to build talloc_testsuite in the standalone build
authorStefan Metzmacher <metze@samba.org>
Sat, 22 Oct 2011 07:38:22 +0000 (09:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 22 Oct 2011 11:15:52 +0000 (13:15 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct 22 13:15:52 CEST 2011 on sn-devel-104

lib/talloc/wscript

index 2340152efc0f8513bb293f4853ffcdf3d33b5a70..dd83e16a423273af472bfb2afbcca6a6e8c2f662 100644 (file)
@@ -84,6 +84,12 @@ def build(bld):
                           pc_files=[],
                           public_headers=[],
                           enabled=bld.env.TALLOC_COMPAT1)
+
+        bld.SAMBA_BINARY('talloc_testsuite',
+                         'testsuite_main.c testsuite.c',
+                         deps='talloc',
+                         install=False)
+
     else:
         private_library = True
 
@@ -121,14 +127,6 @@ def build(bld):
                          enabled=True,
                          realname='talloc.so')
 
-    if not getattr(bld.env, '_SAMBA_BUILD_', 0) == 4:
-        # s4 already has the talloc testsuite builtin to smbtorture
-        bld.SAMBA_BINARY('talloc_testsuite',
-                         'testsuite_main.c testsuite.c',
-                         deps='talloc',
-                         install=False)
-
-
 def test(ctx):
     '''run talloc testsuite'''
     import Utils, samba_utils