[SSSD] [PATCH] TESTS: Fix build with older version of check framework
Lukas Slebodnik
lslebodn at redhat.com
Wed Jan 15 07:41:38 UTC 2014
ehlo,
building of sssd fail on platforms with older version of check unit testing
framework (0.9.8)
src/tests/safe-format-tests.c: In function 'test_safe_format_string_cb':
src/tests/safe-format-tests.c:158: error: implicit declaration of function 'ck_assert_int_ge'
src/tests/safe-format-tests.c:162: error: implicit declaration of function 'ck_assert_int_lt'
make[2]: *** [src/tests/safe_format_tests-safe-format-tests.o] Error 1
make[2]: *** Waiting for unfinished jobs....
patch attached.
LS
-------------- next part --------------
>From c170daca78d1025573977b8a926e294f5351e46a Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Tue, 14 Jan 2014 22:41:07 +0100
Subject: [PATCH] TESTS: Fix build with older version of check framework
---
src/tests/safe-format-tests.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/tests/safe-format-tests.c b/src/tests/safe-format-tests.c
index 25b917bc0df0369c246a1b23f5a27cd6f9db0cda..0fe813e383cd143a5650b7efbd61f5c931508e52 100644
--- a/src/tests/safe-format-tests.c
+++ b/src/tests/safe-format-tests.c
@@ -22,6 +22,14 @@
#include <string.h>
#include <talloc.h>
+#ifndef ck_assert_int_ge
+#define ck_assert_int_ge(X, Y) _ck_assert_int(X, >=, Y)
+#endif
+
+#ifndef ck_assert_int_lt
+#define ck_assert_int_lt(X, Y) _ck_assert_int(X, <, Y)
+#endif
+
typedef struct {
const char *format;
const char *args[8];
--
1.8.4.2
More information about the sssd-devel
mailing list