dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0131-TESTS-Build-test_child-even-without-cmocka.patch

905b4d
From ebf091115b9aaca6a8a78e83b7b4ca7fde95e990 Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Wed, 3 Dec 2014 17:00:25 +0100
905b4d
Subject: [PATCH 131/131] TESTS: Build test_child even without cmocka
905b4d
MIME-Version: 1.0
905b4d
Content-Type: text/plain; charset=UTF-8
905b4d
Content-Transfer-Encoding: 8bit
905b4d
905b4d
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
905b4d
---
905b4d
 Makefile.am | 5 ++++-
905b4d
 1 file changed, 4 insertions(+), 1 deletion(-)
905b4d
905b4d
diff --git a/Makefile.am b/Makefile.am
905b4d
index b719c646721835096931819b10be6f1a766ef22e..8202659e0933529ca7911952bbf1476dbb4a76fc 100644
905b4d
--- a/Makefile.am
905b4d
+++ b/Makefile.am
905b4d
@@ -234,10 +234,13 @@ endif   # HAVE_CMOCKA
905b4d
 check_PROGRAMS = \
905b4d
     stress-tests \
905b4d
     krb5-child-test \
905b4d
-    test-child \
905b4d
     $(non_interactive_cmocka_based_tests) \
905b4d
     $(non_interactive_check_based_tests)
905b4d
 
905b4d
+if HAVE_CMOCKA
905b4d
+check_PROGRAMS += test-child
905b4d
+endif # HAVE_CMOCKA
905b4d
+
905b4d
 PYTHON_TESTS =
905b4d
 
905b4d
 if BUILD_PYTHON_BINDINGS
905b4d
-- 
905b4d
1.9.3
905b4d