mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
stdio-common: Adjust tests in Makefile
Sort tests against updated scripts/sort-makefile-lines.py. No changes in generated code. No regressions on x86_64 and i686. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
70
stdio-common/bug27.c
Normal file
70
stdio-common/bug27.c
Normal file
@@ -0,0 +1,70 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static const char expected[] = "\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55\
|
||||
\n\
|
||||
a\n\
|
||||
abbcd55%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
|
||||
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *buf = malloc (strlen (expected) + 1);
|
||||
snprintf (buf, strlen (expected) + 1,
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
|
||||
"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n",
|
||||
"a", "b", "c", "d", 5);
|
||||
return strcmp (buf, expected) != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
Reference in New Issue
Block a user