diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 1 | ||||
| -rw-r--r-- | tests/test_fprintf.c | 7 | ||||
| -rw-r--r-- | tests/test_vfprintf.c | 16 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 445ac9c..5f70069 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -114,6 +114,7 @@ RUNTIME_TARGETS= \ | |||
| 114 | test_vsnprintf_dynamic \ | 114 | test_vsnprintf_dynamic \ |
| 115 | test_vsnprintf_static \ | 115 | test_vsnprintf_static \ |
| 116 | test_vsprintf \ | 116 | test_vsprintf \ |
| 117 | test_vfprintf \ | ||
| 117 | test_vprintf \ | 118 | test_vprintf \ |
| 118 | test_wcscat_static_write \ | 119 | test_wcscat_static_write \ |
| 119 | test_wcscpy_static_write \ | 120 | test_wcscpy_static_write \ |
diff --git a/tests/test_fprintf.c b/tests/test_fprintf.c new file mode 100644 index 0000000..ab83f11 --- /dev/null +++ b/tests/test_fprintf.c | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | fprintf(stdout, "%s", "1234567"); | ||
| 7 | } | ||
diff --git a/tests/test_vfprintf.c b/tests/test_vfprintf.c new file mode 100644 index 0000000..8ccf994 --- /dev/null +++ b/tests/test_vfprintf.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <stdarg.h> | ||
| 4 | #include <stdio.h> | ||
| 5 | |||
| 6 | void wrap(char *format, ...) { | ||
| 7 | va_list args; | ||
| 8 | va_start(args, format); | ||
| 9 | vfprintf(stdout, format, args); | ||
| 10 | va_end(args); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | int main(int argc, char** argv) { | ||
| 15 | wrap("%s", "1234567"); | ||
| 16 | } | ||
