+2015-08-06 Arjun Shankar <arjun.is@lostca.se>
+
+ * dirent/tst-seekdir.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * elf/tst-dlmodcount.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * elf/tst-order-main.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * elf/tst-pie2.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * inet/tst-ether_aton.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * misc/tst-mntent.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * misc/tst-tsearch.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * posix/tst-regexloc.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * resolv/tst-aton.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * stdio-common/test-fwrite.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * stdio-common/tst-ferror.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * stdio-common/tst-printf.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * stdio-common/tst-printfsz.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * stdlib/tst-strtod.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * string/tst-strlen.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * string/tst-svc.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * time/tst-strptime.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+ * timezone/tst-timezone.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+
2015-08-05 Zack Weinberg <zackw@panix.com>
* misc/regexp.h: Update comments.
#include <dirent.h>
#include <stdlib.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
DIR * dirp;
long int save3 = 0;
closedir (dirp);
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
dl_iterate_phdr (callback, (void *)(intptr_t) REMOVE);
}
-int
-main (int argc, char **argv)
+static int
+do_test (void)
{
void *handle1, *handle2;
unload ("globalmod1.so", handle2);
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <unistd.h>
#include <stdlib.h>
-int
-main( int argc, char *argv[] )
+static int
+do_test (void)
{
printf( "main\n" );
exit(EXIT_SUCCESS);
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
g += 1;
}
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <string.h>
#include <netinet/ether.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
struct ether_addr *valp, val;
int result, r;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <string.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
int result = 0;
struct mntent mef;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
}
-int
-main (int argc, char **argv)
+static int
+do_test (void)
{
int total_error = 0;
static char state[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
return total_error;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <locale.h>
#include <stdio.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
regex_t re;
regmatch_t mat[1];
return res;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
};
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
int result = 0;
size_t cnt;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <stdio.h>
#include <string.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
FILE *f = tmpfile ();
char obuf[99999], ibuf[sizeof obuf];
puts ("Test succeeded.");
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <stdio.h>
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
char buf[100];
int result = 0;
}
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
printf("%-10s\n", (char *) NULL);
}
\f
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
static char shortstr[] = "Hi, Z.";
static char longstr[] = "Good morning, Doctor Chandra. This is Hal. \
printf ("got: '%s', expected: '%s'\n", buf,
" 12345 1234 11145401322 321.765432 3.217654e+02 5 test-string");
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#define V 12345678.12345678
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
char buf[1024];
int result = 0;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
static int long_dbl (void);
static int locale_test (void);
-int
-main (int argc, char ** argv)
+static int
+do_test (void)
{
char buf[100];
const struct ltest *lt;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
#include <stdio.h>
#include <string.h>
-int
-main(int argc, char *argv[])
+static int
+do_test (void)
{
static const size_t lens[] = { 0, 1, 0, 2, 0, 1, 0, 3,
0, 1, 0, 2, 0, 1, 0, 4 };
}
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
return strverscmp (*((char **) p1), *((char **) p2));
}
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
char line[MAX_LINE_SIZE + 1];
char *str[MAX_STRINGS];
return EXIT_SUCCESS;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
}
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
{
struct tm tm;
size_t i;
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
}
-int
-main (int argc, char ** argv)
+static int
+do_test (void)
{
time_t t;
const struct test_times *pt;
return failed ? EXIT_FAILURE : EXIT_SUCCESS;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"