projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new test framework (one main per test)
[libc-test]
/
src
/
stdio
/
snprintf.c
diff --git
a/src/stdio/snprintf.c
b/src/stdio/snprintf.c
index
3f28237
..
1187fd7
100644
(file)
--- a/
src/stdio/snprintf.c
+++ b/
src/stdio/snprintf.c
@@
-1,4
+1,6
@@
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#define _XOPEN_SOURCE 700
+#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@
-123,7
+125,7
@@
static const struct {
{ NULL, 0.0, NULL }
};
{ NULL, 0.0, NULL }
};
-
void test_snprintf
(void)
+
int main
(void)
{
int i, j, k;
char b[2000];
{
int i, j, k;
char b[2000];
@@
-168,4
+170,5
@@
void test_snprintf(void)
}
TEST(i, snprintf(0, 0, "%.4a", 1.0), 11, "%d != %d");
}
TEST(i, snprintf(0, 0, "%.4a", 1.0), 11, "%d != %d");
+ return test_status;
}
}