[SCM] UID Wrapper Repository - branch master updated
Andreas Schneider
asn at samba.org
Sun Feb 2 00:55:30 MST 2014
The branch, master has been updated
via 2fea9dc tests: Use a bool for the test_uwrap_enabled test.
from 2c761ef src: Use a bool for uid_wrapper_enabled().
http://gitweb.samba.org/?p=uid_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 2fea9dc3ac18f05e59cd6d8379c6f544e56b4e03
Author: Andreas Schneider <asn at cryptomilk.org>
Date: Sun Feb 2 08:54:27 2014 +0100
tests: Use a bool for the test_uwrap_enabled test.
Reviewed-by: Jeremy Allison <jra at samba.org>
-----------------------------------------------------------------------
Summary of changes:
tests/test_uwrap_enabled.c | 8 +++++---
tests/uwrap_enabled.c | 8 +++++---
2 files changed, 10 insertions(+), 6 deletions(-)
Changeset truncated at 500 lines:
diff --git a/tests/test_uwrap_enabled.c b/tests/test_uwrap_enabled.c
index c06e904..b8aac44 100644
--- a/tests/test_uwrap_enabled.c
+++ b/tests/test_uwrap_enabled.c
@@ -5,16 +5,18 @@
#include <setjmp.h>
#include <cmocka.h>
+#include <stdbool.h>
+
int uid_wrapper_enabled(void);
static void test_uid_wrapper_enabled(void **state)
{
- int rc;
+ bool ok;
(void)state; /* unused */
- rc = uid_wrapper_enabled();
- assert_int_equal(rc, 1);
+ ok = uid_wrapper_enabled();
+ assert_true(ok);
}
int main(void) {
diff --git a/tests/uwrap_enabled.c b/tests/uwrap_enabled.c
index 59af3bb..9e982d4 100644
--- a/tests/uwrap_enabled.c
+++ b/tests/uwrap_enabled.c
@@ -1,6 +1,8 @@
-int uid_wrapper_enabled(void);
+#include <stdbool.h>
-int uid_wrapper_enabled(void)
+bool uid_wrapper_enabled(void);
+
+bool uid_wrapper_enabled(void)
{
- return 0;
+ return false;
}
--
UID Wrapper Repository
More information about the samba-cvs
mailing list