mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Modify several tests to use test-skeleton.c
This patch modifies several test cases to use test-skeleton.c. It was generated by a bash script written for this purpose and thus excludes several other tests which I deemed worth a visual inspection before making the change. I intend to follow up with individual patches to the tests skipped by the script. The script itself resides at http://git.io/WODAmg and should reproduce this very patch when run against master. ChangeLog: 2014-10-30 Arjun Shankar <arjun.is@lostca.se> * catgets/test-gencat.c: Use test-skeleton.c. * catgets/tst-catgets.c: Likewise. * csu/tst-empty.c: Likewise. * elf/tst-audit2.c: Likewise. * elf/tst-global1.c: Likewise. * elf/tst-pathopt.c: Likewise. * elf/tst-piemod1.c: Likewise. * elf/tst-tls10.c: Likewise. * elf/tst-tls11.c: Likewise. * elf/tst-tls12.c: Likewise. * gnulib/tst-gcc.c: Likewise. * iconvdata/tst-e2big.c: Likewise. * iconvdata/tst-loading.c: Likewise. * iconv/tst-iconv1.c: Likewise. * iconv/tst-iconv2.c: Likewise. * inet/test-inet6_opt.c: Likewise. * inet/tst-gethnm.c: Likewise. * inet/tst-network.c: Likewise. * inet/tst-ntoa.c: Likewise. * intl/tst-codeset.c: Likewise. * intl/tst-gettext2.c: Likewise. * intl/tst-gettext3.c: Likewise. * intl/tst-ngettext.c: Likewise. * intl/tst-translit.c: Likewise. * io/test-stat.c: Likewise. * libio/test-fmemopen.c: Likewise. * libio/tst-freopen.c: Likewise. * libio/tst-sscanf.c: Likewise. * libio/tst-ungetwc1.c: Likewise. * libio/tst-ungetwc2.c: Likewise. * libio/tst-widetext.c: Likewise. * localedata/tst-ctype.c: Likewise. * localedata/tst-digits.c: Likewise. * localedata/tst-leaks.c: Likewise. * localedata/tst-mbswcs1.c: Likewise. * localedata/tst-mbswcs2.c: Likewise. * localedata/tst-mbswcs3.c: Likewise. * localedata/tst-mbswcs4.c: Likewise. * localedata/tst-mbswcs5.c: Likewise. * localedata/tst-setlocale.c: Likewise. * localedata/tst-trans.c: Likewise. * localedata/tst-wctype.c: Likewise. * localedata/tst-xlocale1.c: Likewise. * login/tst-grantpt.c: Likewise. * malloc/tst-calloc.c: Likewise. * malloc/tst-malloc.c: Likewise. * malloc/tst-mallocstate.c: Likewise. * malloc/tst-mcheck.c: Likewise. * malloc/tst-mtrace.c: Likewise. * malloc/tst-obstack.c: Likewise. * math/atest-exp2.c: Likewise. * math/atest-exp.c: Likewise. * math/atest-sincos.c: Likewise. * math/test-matherr.c: Likewise. * math/test-misc.c: Likewise. * math/test-powl.c: Likewise. * math/tst-definitions.c: Likewise. * misc/tst-dirname.c: Likewise. * misc/tst-efgcvt.c: Likewise. * misc/tst-fdset.c: Likewise. * misc/tst-hsearch.c: Likewise. * misc/tst-mntent2.c: Likewise. * nptl/tst-sem7.c: Likewise. * nptl/tst-sem8.c: Likewise. * nptl/tst-sem9.c: Likewise. * nss/test-netdb.c: Likewise. * posix/tst-fnmatch.c: Likewise. * posix/tst-getlogin.c: Likewise. * posix/tst-gnuglob.c: Likewise. * posix/tst-mmap.c: Likewise. * pwd/tst-getpw.c: Likewise. * resolv/tst-inet_ntop.c: Likewise. * rt/tst-timer.c: Likewise. * stdio-common/test-fseek.c: Likewise. * stdio-common/test-popen.c: Likewise. * stdio-common/test-vfprintf.c: Likewise. * stdio-common/tst-cookie.c: Likewise. * stdio-common/tst-fileno.c: Likewise. * stdio-common/tst-gets.c: Likewise. * stdio-common/tst-obprintf.c: Likewise. * stdio-common/tst-perror.c: Likewise. * stdio-common/tst-sprintf2.c: Likewise. * stdio-common/tst-sprintf3.c: Likewise. * stdio-common/tst-sprintf.c: Likewise. * stdio-common/tst-swprintf.c: Likewise. * stdio-common/tst-tmpnam.c: Likewise. * stdio-common/tst-unbputc.c: Likewise. * stdio-common/tst-wc-printf.c: Likewise. * stdlib/tst-environ.c: Likewise. * stdlib/tst-fmtmsg.c: Likewise. * stdlib/tst-limits.c: Likewise. * stdlib/tst-rand48-2.c: Likewise. * stdlib/tst-rand48.c: Likewise. * stdlib/tst-random2.c: Likewise. * stdlib/tst-random.c: Likewise. * stdlib/tst-strtol.c: Likewise. * stdlib/tst-strtoll.c: Likewise. * stdlib/tst-tls-atexit.c: Likewise. * stdlib/tst-xpg-basename.c: Likewise. * string/test-ffs.c: Likewise. * string/tst-bswap.c: Likewise. * string/tst-inlcall.c: Likewise. * string/tst-strtok.c: Likewise. * string/tst-strxfrm.c: Likewise. * sysdeps/x86_64/tst-audit10.c: Likewise. * sysdeps/x86_64/tst-audit3.c: Likewise. * sysdeps/x86_64/tst-audit4.c: Likewise. * sysdeps/x86_64/tst-audit5.c: Likewise. * time/tst-ftime_l.c: Likewise. * time/tst-getdate.c: Likewise. * time/tst-mktime3.c: Likewise. * time/tst-mktime.c: Likewise. * time/tst-posixtz.c: Likewise. * time/tst-strptime2.c: Likewise. * time/tst-strptime3.c: Likewise. * wcsmbs/tst-btowc.c: Likewise. * wcsmbs/tst-mbrtowc.c: Likewise. * wcsmbs/tst-mbsrtowcs.c: Likewise. * wcsmbs/tst-wchar-h.c: Likewise. * wcsmbs/tst-wcpncpy.c: Likewise. * wcsmbs/tst-wcrtomb.c: Likewise. * wcsmbs/tst-wcsnlen.c: Likewise. * wcsmbs/tst-wcstof.c: Likewise.
This commit is contained in:
parent
ab97ee8f1b
commit
29955b5d96
126
ChangeLog
126
ChangeLog
@ -1,3 +1,129 @@
|
||||
2014-10-30 Arjun Shankar <arjun.is@lostca.se>
|
||||
|
||||
* catgets/test-gencat.c: Use test-skeleton.c.
|
||||
* catgets/tst-catgets.c: Likewise.
|
||||
* csu/tst-empty.c: Likewise.
|
||||
* elf/tst-audit2.c: Likewise.
|
||||
* elf/tst-global1.c: Likewise.
|
||||
* elf/tst-pathopt.c: Likewise.
|
||||
* elf/tst-piemod1.c: Likewise.
|
||||
* elf/tst-tls10.c: Likewise.
|
||||
* elf/tst-tls11.c: Likewise.
|
||||
* elf/tst-tls12.c: Likewise.
|
||||
* gnulib/tst-gcc.c: Likewise.
|
||||
* iconvdata/tst-e2big.c: Likewise.
|
||||
* iconvdata/tst-loading.c: Likewise.
|
||||
* iconv/tst-iconv1.c: Likewise.
|
||||
* iconv/tst-iconv2.c: Likewise.
|
||||
* inet/test-inet6_opt.c: Likewise.
|
||||
* inet/tst-gethnm.c: Likewise.
|
||||
* inet/tst-network.c: Likewise.
|
||||
* inet/tst-ntoa.c: Likewise.
|
||||
* intl/tst-codeset.c: Likewise.
|
||||
* intl/tst-gettext2.c: Likewise.
|
||||
* intl/tst-gettext3.c: Likewise.
|
||||
* intl/tst-ngettext.c: Likewise.
|
||||
* intl/tst-translit.c: Likewise.
|
||||
* io/test-stat.c: Likewise.
|
||||
* libio/test-fmemopen.c: Likewise.
|
||||
* libio/tst-freopen.c: Likewise.
|
||||
* libio/tst-sscanf.c: Likewise.
|
||||
* libio/tst-ungetwc1.c: Likewise.
|
||||
* libio/tst-ungetwc2.c: Likewise.
|
||||
* libio/tst-widetext.c: Likewise.
|
||||
* localedata/tst-ctype.c: Likewise.
|
||||
* localedata/tst-digits.c: Likewise.
|
||||
* localedata/tst-leaks.c: Likewise.
|
||||
* localedata/tst-mbswcs1.c: Likewise.
|
||||
* localedata/tst-mbswcs2.c: Likewise.
|
||||
* localedata/tst-mbswcs3.c: Likewise.
|
||||
* localedata/tst-mbswcs4.c: Likewise.
|
||||
* localedata/tst-mbswcs5.c: Likewise.
|
||||
* localedata/tst-setlocale.c: Likewise.
|
||||
* localedata/tst-trans.c: Likewise.
|
||||
* localedata/tst-wctype.c: Likewise.
|
||||
* localedata/tst-xlocale1.c: Likewise.
|
||||
* login/tst-grantpt.c: Likewise.
|
||||
* malloc/tst-calloc.c: Likewise.
|
||||
* malloc/tst-malloc.c: Likewise.
|
||||
* malloc/tst-mallocstate.c: Likewise.
|
||||
* malloc/tst-mcheck.c: Likewise.
|
||||
* malloc/tst-mtrace.c: Likewise.
|
||||
* malloc/tst-obstack.c: Likewise.
|
||||
* math/atest-exp2.c: Likewise.
|
||||
* math/atest-exp.c: Likewise.
|
||||
* math/atest-sincos.c: Likewise.
|
||||
* math/test-matherr.c: Likewise.
|
||||
* math/test-misc.c: Likewise.
|
||||
* math/test-powl.c: Likewise.
|
||||
* math/tst-definitions.c: Likewise.
|
||||
* misc/tst-dirname.c: Likewise.
|
||||
* misc/tst-efgcvt.c: Likewise.
|
||||
* misc/tst-fdset.c: Likewise.
|
||||
* misc/tst-hsearch.c: Likewise.
|
||||
* misc/tst-mntent2.c: Likewise.
|
||||
* nptl/tst-sem7.c: Likewise.
|
||||
* nptl/tst-sem8.c: Likewise.
|
||||
* nptl/tst-sem9.c: Likewise.
|
||||
* nss/test-netdb.c: Likewise.
|
||||
* posix/tst-fnmatch.c: Likewise.
|
||||
* posix/tst-getlogin.c: Likewise.
|
||||
* posix/tst-gnuglob.c: Likewise.
|
||||
* posix/tst-mmap.c: Likewise.
|
||||
* pwd/tst-getpw.c: Likewise.
|
||||
* resolv/tst-inet_ntop.c: Likewise.
|
||||
* rt/tst-timer.c: Likewise.
|
||||
* stdio-common/test-fseek.c: Likewise.
|
||||
* stdio-common/test-popen.c: Likewise.
|
||||
* stdio-common/test-vfprintf.c: Likewise.
|
||||
* stdio-common/tst-cookie.c: Likewise.
|
||||
* stdio-common/tst-fileno.c: Likewise.
|
||||
* stdio-common/tst-gets.c: Likewise.
|
||||
* stdio-common/tst-obprintf.c: Likewise.
|
||||
* stdio-common/tst-perror.c: Likewise.
|
||||
* stdio-common/tst-sprintf2.c: Likewise.
|
||||
* stdio-common/tst-sprintf3.c: Likewise.
|
||||
* stdio-common/tst-sprintf.c: Likewise.
|
||||
* stdio-common/tst-swprintf.c: Likewise.
|
||||
* stdio-common/tst-tmpnam.c: Likewise.
|
||||
* stdio-common/tst-unbputc.c: Likewise.
|
||||
* stdio-common/tst-wc-printf.c: Likewise.
|
||||
* stdlib/tst-environ.c: Likewise.
|
||||
* stdlib/tst-fmtmsg.c: Likewise.
|
||||
* stdlib/tst-limits.c: Likewise.
|
||||
* stdlib/tst-rand48-2.c: Likewise.
|
||||
* stdlib/tst-rand48.c: Likewise.
|
||||
* stdlib/tst-random2.c: Likewise.
|
||||
* stdlib/tst-random.c: Likewise.
|
||||
* stdlib/tst-strtol.c: Likewise.
|
||||
* stdlib/tst-strtoll.c: Likewise.
|
||||
* stdlib/tst-tls-atexit.c: Likewise.
|
||||
* stdlib/tst-xpg-basename.c: Likewise.
|
||||
* string/test-ffs.c: Likewise.
|
||||
* string/tst-bswap.c: Likewise.
|
||||
* string/tst-inlcall.c: Likewise.
|
||||
* string/tst-strtok.c: Likewise.
|
||||
* string/tst-strxfrm.c: Likewise.
|
||||
* sysdeps/x86_64/tst-audit10.c: Likewise.
|
||||
* sysdeps/x86_64/tst-audit3.c: Likewise.
|
||||
* sysdeps/x86_64/tst-audit4.c: Likewise.
|
||||
* sysdeps/x86_64/tst-audit5.c: Likewise.
|
||||
* time/tst-ftime_l.c: Likewise.
|
||||
* time/tst-getdate.c: Likewise.
|
||||
* time/tst-mktime3.c: Likewise.
|
||||
* time/tst-mktime.c: Likewise.
|
||||
* time/tst-posixtz.c: Likewise.
|
||||
* time/tst-strptime2.c: Likewise.
|
||||
* time/tst-strptime3.c: Likewise.
|
||||
* wcsmbs/tst-btowc.c: Likewise.
|
||||
* wcsmbs/tst-mbrtowc.c: Likewise.
|
||||
* wcsmbs/tst-mbsrtowcs.c: Likewise.
|
||||
* wcsmbs/tst-wchar-h.c: Likewise.
|
||||
* wcsmbs/tst-wcpncpy.c: Likewise.
|
||||
* wcsmbs/tst-wcrtomb.c: Likewise.
|
||||
* wcsmbs/tst-wcsnlen.c: Likewise.
|
||||
* wcsmbs/tst-wcstof.c: Likewise.
|
||||
|
||||
2014-11-04 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #14132]
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
nl_catd catalog;
|
||||
setlocale (LC_ALL, "");
|
||||
@ -29,3 +29,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -14,8 +14,8 @@ static const char *msgs[] =
|
||||
|
||||
#define ROUNDS 5
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int rnd;
|
||||
int result = 0;
|
||||
@ -64,3 +64,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -1,6 +1,9 @@
|
||||
/* The most useful C program known to man. */
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -31,8 +31,8 @@ calloc (size_t n, size_t m)
|
||||
return ptr;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
if (magic[1] != MAGIC1 || magic[0] != MAGIC2)
|
||||
{
|
||||
@ -42,3 +42,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *h1 = dlopen ("$ORIGIN/testobj6.so", RTLD_GLOBAL|RTLD_LAZY);
|
||||
if (h1 == NULL)
|
||||
@ -34,3 +34,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *h;
|
||||
int (*fp) (int);
|
||||
@ -37,3 +37,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -6,8 +6,8 @@ foo (void)
|
||||
return 21;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int val = foo ();
|
||||
if (val != 34)
|
||||
@ -18,3 +18,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -8,8 +8,8 @@ __thread struct A local = { 1, 2, 3 };
|
||||
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
|
||||
abort ()
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct A *p;
|
||||
if (local.a != 1 || local.b != 2 || local.c != 3)
|
||||
@ -35,3 +35,6 @@ main (void)
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -5,8 +5,8 @@
|
||||
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
|
||||
abort ()
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct A *p;
|
||||
check1 ();
|
||||
@ -24,3 +24,6 @@ main (void)
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -5,8 +5,8 @@
|
||||
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
|
||||
abort ()
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct A *p;
|
||||
check1 ();
|
||||
@ -15,3 +15,6 @@ main (void)
|
||||
|
||||
exit (0);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -51,8 +51,8 @@
|
||||
})
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
int __integer_type;
|
||||
@ -71,3 +71,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -5,8 +5,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char utf8[5];
|
||||
wchar_t ucs4[5];
|
||||
@ -42,3 +42,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char buf[3];
|
||||
const wchar_t wc[1] = L"a";
|
||||
@ -97,3 +97,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -95,10 +95,13 @@ test_tscii (void)
|
||||
test ("TSCII", inbuf, sizeof (inbuf), 9);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
test_euc_jisx0213 ();
|
||||
test_tscii ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -114,8 +114,8 @@ static const char inbuf[] =
|
||||
" function. Later modifications of the variable have no effect.\n";
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
size_t count = TEST_ROUNDS;
|
||||
int result = 0;
|
||||
@ -180,3 +180,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -194,8 +194,8 @@ decode_inet6_opt (void *eb, socklen_t el)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *eb;
|
||||
socklen_t el;
|
||||
@ -206,3 +206,6 @@ main (void)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -10,8 +10,8 @@
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct hostent *ent;
|
||||
struct in_addr hostaddr;
|
||||
@ -62,3 +62,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -51,8 +51,8 @@ struct
|
||||
};
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int errors = 0;
|
||||
size_t i;
|
||||
@ -76,3 +76,6 @@ main (void)
|
||||
|
||||
return errors != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -22,8 +22,8 @@ test (unsigned int inaddr, const char *expected)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -34,3 +34,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -23,8 +23,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *s;
|
||||
int result = 0;
|
||||
@ -55,3 +55,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -40,8 +40,8 @@ struct data_t strings[] =
|
||||
const int lang_cnt = 3;
|
||||
const char *lang[] = {"lang1", "lang2", "lang3"};
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -70,3 +70,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *s;
|
||||
int result = 0;
|
||||
@ -57,3 +57,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const char *strs[2] = { "singular", "plural" };
|
||||
unsigned long int i;
|
||||
@ -63,3 +63,6 @@ main (void)
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
const char *s;
|
||||
@ -49,3 +49,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include <stddef.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
/* With _FILE_OFFSET_BITS=64 struct stat and struct stat64 should
|
||||
be identical. */
|
||||
@ -65,3 +65,6 @@ main (void)
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -22,8 +22,8 @@ static char buffer[] = "foobar";
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int ch;
|
||||
FILE *stream;
|
||||
@ -37,3 +37,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char name[] = "/tmp/tst-freopen.XXXXXX";
|
||||
const char * const test = "Let's test freopen.\n";
|
||||
@ -100,3 +100,6 @@ main (void)
|
||||
unlink (name);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#define WCS_LENGTH 256
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const char cnv[] ="%l[abc]";
|
||||
const char str[] = "abbcXab";
|
||||
@ -18,3 +18,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
FILE *fp;
|
||||
const char *str = "abcdef";
|
||||
@ -79,3 +79,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
FILE *fp;
|
||||
const char *str = "abcdef";
|
||||
@ -79,3 +79,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -31,8 +31,8 @@
|
||||
#define SIZE 210000
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char name[] = "/tmp/widetext.out.XXXXXX";
|
||||
char mbbuf[SIZE];
|
||||
@ -367,3 +367,6 @@ main (void)
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -61,8 +61,8 @@ static struct classes
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const char *cp;
|
||||
const char *cp2;
|
||||
@ -447,3 +447,6 @@ punct = %04x alnum = %04x\n",
|
||||
printf (" No errors for `%s' locale\n\n\n", setlocale (LC_ALL, NULL));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -111,8 +111,8 @@ static struct wprintf_int_test
|
||||
(sizeof (wprintf_int_tests) / sizeof (wprintf_int_tests[0]))
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int cnt;
|
||||
int failures;
|
||||
@ -246,3 +246,6 @@ main (void)
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <locale.h>
|
||||
#include <mcheck.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int cnt;
|
||||
|
||||
@ -16,3 +16,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -33,8 +33,8 @@
|
||||
} \
|
||||
putc ('\n', stdout)
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
|
||||
mbstate_t state;
|
||||
@ -60,3 +60,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -35,8 +35,8 @@
|
||||
} \
|
||||
putc ('\n', stdout)
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
|
||||
mbstate_t state;
|
||||
@ -62,3 +62,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -38,8 +38,8 @@
|
||||
putc ('\n', stdout); \
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
unsigned char buf[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
const unsigned char bufcheck[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
|
||||
@ -73,3 +73,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -34,8 +34,8 @@
|
||||
} \
|
||||
putc ('\n', stdout)
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
|
||||
mbstate_t state;
|
||||
@ -60,3 +60,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -37,8 +37,8 @@
|
||||
putc ('\n', stdout); \
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
unsigned char buf[7] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
const unsigned char bufcheck[7] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb, 0 };
|
||||
@ -72,3 +72,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char q[30];
|
||||
char *s;
|
||||
@ -23,3 +23,6 @@ main (void)
|
||||
|
||||
return strcmp (s, "de_DE.UTF-8") != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char buf[30];
|
||||
wchar_t wbuf[30];
|
||||
@ -68,3 +68,6 @@ main (void)
|
||||
|
||||
return errors;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
wctype_t wct;
|
||||
wchar_t buf[1000];
|
||||
@ -141,3 +141,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -20,8 +20,8 @@ static struct
|
||||
#define ntests (sizeof (tests) / sizeof (tests[0]))
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
size_t cnt;
|
||||
int result = 0;
|
||||
@ -73,3 +73,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -66,8 +66,8 @@ test_einval (void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -76,3 +76,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -104,8 +104,8 @@ null_test (void)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
/* We are allocating blocks with `calloc' and check whether every
|
||||
block is completely cleared. We first try this for some fixed
|
||||
@ -123,3 +123,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -29,8 +29,8 @@ merror (const char *msg)
|
||||
printf ("Error: %s\n", msg);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *p, *q;
|
||||
int save;
|
||||
@ -75,3 +75,6 @@ main (void)
|
||||
|
||||
return errors != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -29,8 +29,8 @@ merror (const char *msg)
|
||||
printf ("Error: %s\n", msg);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *p1, *p2;
|
||||
void *save_state;
|
||||
@ -79,3 +79,6 @@ main (void)
|
||||
* c-basic-offset: 2
|
||||
* End:
|
||||
*/
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -29,8 +29,8 @@ merror (const char *msg)
|
||||
printf ("Error: %s\n", msg);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *p, *q;
|
||||
|
||||
@ -88,3 +88,6 @@ main (void)
|
||||
|
||||
return errors != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -30,8 +30,8 @@ static void print (const void *node, VISIT value, int level);
|
||||
static FILE *fp;
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
void *root = NULL;
|
||||
size_t linelen = 0;
|
||||
@ -100,3 +100,6 @@ print (const void *node, VISIT value, int level)
|
||||
if (value == postorder || value == leaf)
|
||||
fprintf (fp, "%3d: %s", ++cnt, *(const char **) node);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@ verbose_free (void *buf)
|
||||
printf ("free (%p)\n", buf);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
int align = 2;
|
||||
@ -62,3 +62,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -102,8 +102,8 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE)
|
||||
return i * mpbpl + j;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
mp1 ex, x, xt, e2, e3;
|
||||
int i;
|
||||
@ -190,3 +190,6 @@ main (void)
|
||||
|
||||
return failures == 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -144,8 +144,8 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE)
|
||||
return i * mpbpl + j;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
mp1 ex, x, xt, e2, e3;
|
||||
int i;
|
||||
@ -227,3 +227,6 @@ main (void)
|
||||
|
||||
return failures == 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -141,8 +141,8 @@ mpn_bitsize (const mp_limb_t *SRC_PTR, mp_size_t SIZE)
|
||||
return i * mpbpl + j;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
mp1 si, co, x, ox, xt, s2, c2, s3, c3;
|
||||
int i;
|
||||
@ -277,3 +277,6 @@ main (void)
|
||||
|
||||
return (sin_failures == 0 && cos_failures == 0) ? 0 : 1;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -12,10 +12,13 @@ matherr (struct exception *s)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
_LIB_VERSION = _SVID_;
|
||||
acos (2.0);
|
||||
return fail;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include <math-tests.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -1201,3 +1201,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include <float.h>
|
||||
#include <ieee754.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -48,3 +48,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -44,3 +44,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -37,8 +37,8 @@ test (const char *input, const char *result)
|
||||
return retval;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -67,3 +67,6 @@ main (void)
|
||||
|
||||
return result != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -200,8 +200,8 @@ special (void)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
test (ecvt_tests, ecvt, "ecvt");
|
||||
test (fcvt_tests, fcvt, "fcvt");
|
||||
@ -211,3 +211,6 @@ main (void)
|
||||
|
||||
return error_count;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -20,8 +20,8 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int retval = 0;
|
||||
int i;
|
||||
@ -62,3 +62,6 @@ main (void)
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <search.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int a = 1;
|
||||
int b = 2;
|
||||
@ -29,3 +29,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
struct mntent mef;
|
||||
@ -39,3 +39,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -31,8 +31,8 @@ remove_sem (int status, void *arg)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
sem_t *s;
|
||||
sem_t *s2;
|
||||
@ -106,3 +106,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -31,8 +31,8 @@ remove_sem (int status, void *arg)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
sem_t *s;
|
||||
int i;
|
||||
@ -71,3 +71,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -31,8 +31,8 @@ remove_sem (int status, void *arg)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
sem_t *s;
|
||||
int i;
|
||||
@ -78,3 +78,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -356,8 +356,8 @@ setdb (const char *dbname)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
/*
|
||||
setdb ("db");
|
||||
@ -376,3 +376,6 @@ main (void)
|
||||
|
||||
return (error_count != 0);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -33,8 +33,8 @@ static char *flag_output (int flags);
|
||||
static char *escape (const char *str, size_t *reslenp, char **resbuf);
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *linebuf = NULL;
|
||||
size_t linebuflen = 0;
|
||||
@ -388,3 +388,6 @@ escape (const char *str, size_t *reslenp, char **resbufp)
|
||||
|
||||
return resbuf;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -19,8 +19,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char *login;
|
||||
int errors = 0;
|
||||
@ -55,3 +55,6 @@ main (void)
|
||||
|
||||
return errors != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -379,8 +379,8 @@ test_result (const char *fmt, int flags, glob_t *gl, const char *str[])
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
glob_t gl;
|
||||
int errval;
|
||||
@ -497,3 +497,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -6,8 +6,8 @@
|
||||
#include <sys/mman.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
FILE *fp;
|
||||
@ -195,3 +195,6 @@ main (void)
|
||||
/* That's it. */
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@ check (uid_t uid)
|
||||
(void) getpw (uid, buf);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
uid_t uid;
|
||||
|
||||
@ -38,3 +38,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct in_addr addr4;
|
||||
struct in6_addr addr6;
|
||||
@ -109,3 +109,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
/* This file is only used if there is no other implementation and it should
|
||||
means that there is no implementation of POSIX timers. */
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
#ifdef _POSIX_TIMERS
|
||||
/* There should be a test. */
|
||||
@ -30,3 +30,6 @@ main (void)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -19,8 +19,8 @@
|
||||
|
||||
#define TESTFILE "/tmp/test.dat"
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
FILE *fp;
|
||||
int i, j;
|
||||
@ -82,3 +82,6 @@ main (void)
|
||||
puts ((i > 255) ? "Test succeeded." : "Test FAILED!");
|
||||
return (i > 255) ? 0 : 1;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -49,8 +49,8 @@ read_data (FILE *stream)
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
FILE *output, *input;
|
||||
int wstatus, rstatus;
|
||||
@ -100,3 +100,6 @@ main (void)
|
||||
puts (wstatus | rstatus ? "Test FAILED!" : "Test succeeded.");
|
||||
return (wstatus | rstatus);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -36,8 +36,8 @@ const char *locs[] =
|
||||
|
||||
char large[50000];
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char buf[25];
|
||||
size_t i;
|
||||
@ -124,3 +124,6 @@ main (void)
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -63,8 +63,8 @@ cookieclose (void *cookie)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
cookie_io_functions_t fcts;
|
||||
char buf[1];
|
||||
@ -90,3 +90,6 @@ main (void)
|
||||
|
||||
return errors != 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -28,10 +28,13 @@ check (const char *name, FILE *stream, int fd)
|
||||
return sfd != fd;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
return (check ("stdin", stdin, STDIN_FILENO) ||
|
||||
check ("stdout", stdout, STDOUT_FILENO) ||
|
||||
check ("stderr", stderr, STDERR_FILENO));
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char buf[100];
|
||||
int result = 0;
|
||||
@ -61,3 +61,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
struct obstack ob;
|
||||
int n;
|
||||
@ -40,3 +40,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -24,8 +24,8 @@
|
||||
#define WC_EXP_LEN (sizeof (WC_EXP) - 1)
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int fd;
|
||||
char fname[] = "/tmp/tst-perror.XXXXXX";
|
||||
@ -152,3 +152,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
char buf[100];
|
||||
int result = 0;
|
||||
@ -73,3 +73,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
#if LDBL_MANT_DIG >= 106
|
||||
volatile union { long double l; long long x[2]; } u, v;
|
||||
@ -82,3 +82,6 @@ main (void)
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
#if LDBL_MANT_DIG >= 106
|
||||
volatile union { long double l; long long x[2]; } u, v;
|
||||
@ -88,3 +88,6 @@ main (void)
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
const char input[] = "\x8e\xa1g\x8e\xa2h\x8e\xa3i\x8e\xa4j";
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
wchar_t buf[1000];
|
||||
#define nbuf (sizeof (buf) / sizeof (buf[0]))
|
||||
@ -54,3 +54,6 @@ swprintf (.., .., L\"%ls\", \"%ls\") produced \"%ls\", not \"%ls\"\n", \
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -19,8 +19,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const char *name;
|
||||
int retval = 0;
|
||||
@ -48,3 +48,6 @@ main (void)
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -1,11 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
putc ('1', stderr);
|
||||
putc ('2', stderr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <string.h>
|
||||
#include <wctype.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
wchar_t tmp[3];
|
||||
tmp[0] = '8';
|
||||
@ -20,3 +20,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -25,8 +25,8 @@
|
||||
|
||||
char putenv_val[100] = VAR "=some longer value";
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
const char *valp;
|
||||
@ -219,3 +219,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#define MM_TEST 10
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -80,3 +80,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -16,8 +16,8 @@ bitval (int bits)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
@ -67,3 +67,6 @@ main (void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
time_t t = time (NULL);
|
||||
int i, ret = 0;
|
||||
@ -111,3 +111,6 @@ main (void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -8,8 +8,8 @@
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
unsigned short int xs[3] = { 0x0001, 0x0012, 0x0123 };
|
||||
unsigned short int lxs[7];
|
||||
@ -388,3 +388,6 @@ drand48() and erand48 in lines %d and %d produce different results\n",
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -46,8 +46,8 @@ const unsigned int seed[3] = { 0x12344321U, 0xEE11DD22U, 0xFEDCBA98 };
|
||||
|
||||
void fail (const char *msg, int s, int i) __attribute__ ((__noreturn__));
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
long int rnd[nseq][nrnd]; /* pseudorandom numbers */
|
||||
char* state[nseq]; /* state for PRNG */
|
||||
@ -117,3 +117,6 @@ fail (const char *msg, int s, int i)
|
||||
printf ("%s (seq %d, pos %d).\n", msg, s, i);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -20,8 +20,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int pass;
|
||||
int ret = 0;
|
||||
@ -56,3 +56,6 @@ main (void)
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -534,8 +534,8 @@ static const struct ltest tests[] =
|
||||
/* Prototypes for local functions. */
|
||||
static void expand (char *dst, int c);
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const struct ltest *lt;
|
||||
char *ep;
|
||||
@ -623,3 +623,6 @@ expand (dst, c)
|
||||
else
|
||||
(void) sprintf (dst, "%#.3o", (unsigned int) c);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -309,8 +309,8 @@ static const struct ltest tests[] =
|
||||
/* Prototypes for local functions. */
|
||||
static void expand (char *dst, int c);
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
const struct ltest *lt;
|
||||
char *ep;
|
||||
@ -398,3 +398,6 @@ expand (dst, c)
|
||||
else
|
||||
(void) sprintf (dst, "%#.3o", (unsigned int) c);
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -60,8 +60,8 @@ load (void *u)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
pthread_t t;
|
||||
int ret;
|
||||
@ -109,3 +109,6 @@ main (void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
@ -37,8 +37,8 @@ static struct
|
||||
};
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
size_t i = 0;
|
||||
int errors = 0;
|
||||
@ -64,3 +64,6 @@ main (void)
|
||||
|
||||
return errors;
|
||||
}
|
||||
|
||||
#define TEST_FUNCTION do_test ()
|
||||
#include "../test-skeleton.c"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user