summaryrefslogtreecommitdiff
path: root/source/kit_test
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit_test')
-rw-r--r--source/kit_test/run_tests.c4
-rw-r--r--source/kit_test/test.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/source/kit_test/run_tests.c b/source/kit_test/run_tests.c
index 19fea96..a4ebd12 100644
--- a/source/kit_test/run_tests.c
+++ b/source/kit_test/run_tests.c
@@ -5,7 +5,7 @@
struct kit_tests_list kit_tests_list = { 0 };
-static void report(int i, char const *file, int line, _Bool ok) {
+static void report(int i, char const *file, int line, int ok) {
int const n = kit_tests_list.tests[i].assertions++;
kit_tests_list.tests[i].file[n] = file;
@@ -23,7 +23,7 @@ static long long sec_to_ms(long long sec) {
enum code_value { white, yellow, red, green };
-static void color_code(_Bool term_color, int c) {
+static void color_code(int term_color, int c) {
if (term_color) {
if (c == white)
printf("\x1b[37m");
diff --git a/source/kit_test/test.h b/source/kit_test/test.h
index f53ab88..365c43c 100644
--- a/source/kit_test/test.h
+++ b/source/kit_test/test.h
@@ -24,8 +24,7 @@ extern "C" {
# define KIT_TEST_STRING_SIZE 0x100
#endif
-typedef void (*kit_test_report)(int, char const *file, int line,
- _Bool);
+typedef void (*kit_test_report)(int, char const *file, int line, int);
typedef void (*kit_test_function)(int, kit_test_report);
struct kit_test_case {
@@ -34,7 +33,7 @@ struct kit_test_case {
int assertions;
char const *file[KIT_TEST_ASSERTIONS_LIMIT];
int line[KIT_TEST_ASSERTIONS_LIMIT];
- _Bool status[KIT_TEST_ASSERTIONS_LIMIT];
+ int status[KIT_TEST_ASSERTIONS_LIMIT];
};
struct kit_tests_list {