From 08b4a5f9f1575c882ab7174eb3249b574df6976f Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 31 Jan 2017 14:50:53 +1100 Subject: [PATCH] ctdb-tests: Do not build mutex test if robust mutexes are not supported BUG: https://bugzilla.samba.org/show_bug.cgi?id=12469 Signed-off-by: Amitay Isaacs Reviewed-by: Stefan Metzmacher --- ctdb/wscript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ctdb/wscript b/ctdb/wscript index b9a3072801e..446bd8d3529 100644 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -830,10 +830,11 @@ def build(bld): ib_deps, install_path='${CTDB_TEST_LIBEXECDIR}') - bld.SAMBA_BINARY('test_mutex_raw', - source='tests/src/test_mutex_raw.c', - deps='pthread', - install_path='${CTDB_TEST_LIBEXECDIR}') + if bld.env.HAVE_ROBUST_MUTEXES: + bld.SAMBA_BINARY('test_mutex_raw', + source='tests/src/test_mutex_raw.c', + deps='pthread', + install_path='${CTDB_TEST_LIBEXECDIR}') test_subdirs = [ 'complex', -- 2.47.2