tests: Use a bool for the test_uwrap_enabled test.
[obnox/cwrap/uid_wrapper.git] / tests / test_uwrap_enabled.c
index c06e90415783adb9ef964d0771dba0af6a64d23c..b8aac44efc9d85fc4bbc1d99ee541c1bdcc257b1 100644 (file)
@@ -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) {