@@ -73,7 +73,7 @@ static bool do_tests(int interactive, int verbose)
DECLARE_SUITE(semanage_store);
DECLARE_SUITE(semanage_utilities);
DECLARE_SUITE(handle);
- DECLARE_SUITE(bool);
+ DECLARE_SUITE(boolean);
DECLARE_SUITE(fcontext);
DECLARE_SUITE(iface);
DECLARE_SUITE(ibendport);
@@ -57,7 +57,7 @@ static void test_bool_list_local(void);
extern semanage_handle_t *sh;
-int bool_test_init(void)
+int boolean_test_init(void)
{
if (create_test_store() < 0) {
fprintf(stderr, "Could not create test store\n");
@@ -72,7 +72,7 @@ int bool_test_init(void)
return 0;
}
-int bool_test_cleanup(void)
+int boolean_test_cleanup(void)
{
if (destroy_test_store() < 0) {
fprintf(stderr, "Could not destroy test store\n");
@@ -82,7 +82,7 @@ int bool_test_cleanup(void)
return 0;
}
-int bool_add_tests(CU_pSuite suite)
+int boolean_add_tests(CU_pSuite suite)
{
CU_add_test(suite, "bool_key_create", test_bool_key_create);
CU_add_test(suite, "bool_key_extract", test_bool_key_extract);
@@ -24,8 +24,8 @@
#include <CUnit/Basic.h>
#include "semanage/semanage.h"
-int bool_test_init(void);
-int bool_test_cleanup(void);
-int bool_add_tests(CU_pSuite suite);
+int boolean_test_init(void);
+int boolean_test_cleanup(void);
+int boolean_add_tests(CU_pSuite suite);
#endif
Avoid using the identifier `bool` to improve support with future C standards. C23 is about to make `bool` a predefined macro (see N2654). Signed-off-by: Christian Göttsche <cgzones@googlemail.com> --- libsemanage/tests/libsemanage-tests.c | 2 +- libsemanage/tests/test_bool.c | 6 +++--- libsemanage/tests/test_bool.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-)