aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/bug23-3.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
committerZack Weinberg <zackw@panix.com>2017-06-08 15:39:03 -0400
commit5046dbb4a7eba5eccfd258f92f4735c9ffc8d069 (patch)
tree4470480d904b65cf14ca524f96f79eca818c3eaf /stdio-common/bug23-3.c
parent199fc19d3aaaf57944ef036e15904febe877fc93 (diff)
downloadglibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.gz
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.tar.bz2
glibc-5046dbb4a7eba5eccfd258f92f4735c9ffc8d069.zip
Prepare for radical source tree reorganization.zack/build-layout-experiment
All top-level files and directories are moved into a temporary storage directory, REORG.TODO, except for files that will certainly still exist in their current form at top level when we're done (COPYING, COPYING.LIB, LICENSES, NEWS, README), all old ChangeLog files (which are moved to the new directory OldChangeLogs, instead), and the generated file INSTALL (which is just deleted; in the new order, there will be no generated files checked into version control).
Diffstat (limited to 'stdio-common/bug23-3.c')
-rw-r--r--stdio-common/bug23-3.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/stdio-common/bug23-3.c b/stdio-common/bug23-3.c
deleted file mode 100644
index 57c8cef195..0000000000
--- a/stdio-common/bug23-3.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int
-do_test (void)
-{
- size_t instances = 16384;
-#define X0 "\n%1$s\n" "%1$s" "%2$s" "%2$s" "%3$s" "%4$s" "%5$d" "%5$d"
- const char *item = "\na\nabbcd55";
-#define X3 X0 X0 X0 X0 X0 X0 X0 X0
-#define X6 X3 X3 X3 X3 X3 X3 X3 X3
-#define X9 X6 X6 X6 X6 X6 X6 X6 X6
-#define X12 X9 X9 X9 X9 X9 X9 X9 X9
-#define X14 X12 X12 X12 X12
-#define TRAILER "%%%%%%%%%%%%%%%%%%%%%%%%%%"
-#define TRAILER2 TRAILER TRAILER
- size_t length = instances * strlen (item) + strlen (TRAILER) + 1;
-
- char *buf = malloc (length + 1);
- snprintf (buf, length + 1,
- X14 TRAILER2 "\n",
- "a", "b", "c", "d", 5);
-
- const char *p = buf;
- size_t i;
- for (i = 0; i < instances; ++i)
- {
- const char *expected;
- for (expected = item; *expected; ++expected)
- {
- if (*p != *expected)
- {
- printf ("mismatch at offset %zu (%zu): expected %d, got %d\n",
- (size_t) (p - buf), i, *expected & 0xFF, *p & 0xFF);
- return 1;
- }
- ++p;
- }
- }
- if (strcmp (p, TRAILER "\n") != 0)
- {
- printf ("mismatch at trailer: [%s]\n", p);
- return 1;
- }
- free (buf);
- return 0;
-}
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"