diff options
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | stdalign.c | 4 | ||||
-rw-r--r-- | stdio.c | 2 | ||||
-rw-r--r-- | test.h | 1 | ||||
-rw-r--r-- | wchar.c | 2 | ||||
-rw-r--r-- | wctype.c | 3 |
6 files changed, 9 insertions, 11 deletions
@@ -62,16 +62,16 @@ stdatomic.o: stdatomic.c test.h stdbool.o: stdbool.c test.h stddef.o: stddef.c test.h stdint.o: stdint.c test.h -stdio.o: stdio.c test.h +stdio.o: stdio.c test.h _stdio.h stdlib.o: stdlib.c test.h -stdnoreturn.o: stdnoreturn.c test.h +stdnoreturn.o: stdnoreturn.c test.h _stdnoreturn.h string.o: string.c test.h tgmath.o: tgmath.c test.h threads.o: threads.c test.h time.o: time.c test.h uchar.o: uchar.c test.h -wchar.o: wchar.c test.h -wctype.o: wctype.c test.h +wchar.o: wchar.c test.h _wchar.h +wctype.o: wctype.c test.h _wctype.h test.o: test.c test.h main.o: main.c test.h @@ -10,8 +10,8 @@ void test_stdalign_h(void) /* alignas() */ /* alignof() */ - test_defined(__alignas_is_defined); - test_defined(__alignof_is_defined); + test_int_equals(__alignas_is_defined, 1); + test_int_equals(__alignof_is_defined, 1); testing_end(); } @@ -1,4 +1,5 @@ #include <stdio.h> +#include "_stdio.h" #include "test.h" void test_stdio_h(void) @@ -23,7 +24,6 @@ void test_stdio_h(void) test_distinct(buftypes); test_min(BUFSIZ, 256); - test_defined(EOF); test_min(FILENAME_MAX, 1); test_min(FOPEN_MAX, 8); test_min(L_tmpnam, 1); @@ -21,7 +21,6 @@ void test_bool_imp(const char *, int, int); #define test_true(expression) test_bool_imp(#expression, expression, 1) #define test_min(expression, min) test_bool_imp(#expression, min < 0 ? expression <= min : expression >= min, 1) #define test_max(expression, max) test_bool_imp(#expression, 0 < expression && expression <= max, 1) -#define test_defined(expression) test_false(expression * 0) void test_string_imp(const char*, const char*, const char*); #define test_string(expression, string) test_string_imp(#expression, expression, string) @@ -1,5 +1,6 @@ #if defined __STDC_VERSION__ #include <wchar.h> +#include "_wchar.h" #include "test.h" void test_wchar_h(void) @@ -15,7 +16,6 @@ void test_wchar_h(void) test_true(NULL == 0); test_min(WCHAR_MIN, 0); test_min(WCHAR_MAX, 0); - test_defined(WEOF); testing_end(); } @@ -1,5 +1,6 @@ #if defined __STDC_VERSION__ #include <wctype.h> +#include "_wctype.h" #include "test.h" void test_wctype_h(void) @@ -10,8 +11,6 @@ void test_wctype_h(void) testing_header("wctype.h"); - test_defined(WEOF); - testing_end(); } |