mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Modify several tests to use test-skeleton.c
These tests were skipped by the use-test-skeleton conversion done in
commit 29955b5d
because they were reused in other tests via the #include
directive, and so deemed worth an inspection before they were modified.
This has now been done.
ChangeLog:
2015-07-09 Arjun Shankar <arjun.is@lostca.se>
* elf/tst-leaks1.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* localedata/tst-langinfo.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-fpucw.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-tgmath.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-tgmath2.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* setjmp/tst-setjmp.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/tst-sscanf.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* sysdeps/x86_64/tst-audit6.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
This commit is contained in:
committed by
Siddhesh Poyarekar
parent
e505234f6e
commit
0035851c3c
33
ChangeLog
33
ChangeLog
@ -1,5 +1,38 @@
|
|||||||
2015-07-15 Arjun Shankar <arjun.is@lostca.se>
|
2015-07-15 Arjun Shankar <arjun.is@lostca.se>
|
||||||
|
|
||||||
|
* elf/tst-leaks1.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* localedata/tst-langinfo.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* math/test-fpucw.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* math/test-tgmath.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* math/test-tgmath2.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* setjmp/tst-setjmp.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* stdio-common/tst-sscanf.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
* sysdeps/x86_64/tst-audit6.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
|
||||||
* elf/tst-audit9.c (main): Converted to ...
|
* elf/tst-audit9.c (main): Converted to ...
|
||||||
(do_test): ... this.
|
(do_test): ... this.
|
||||||
(TEST_FUNCTION): New macro.
|
(TEST_FUNCTION): New macro.
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
#include <mcheck.h>
|
#include <mcheck.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
mtrace ();
|
mtrace ();
|
||||||
|
|
||||||
@ -23,3 +23,6 @@ main (void)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
@ -138,8 +138,8 @@ map_paramstr (const char *str)
|
|||||||
# define REASON(str)
|
# define REASON(str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
@ -281,3 +281,6 @@ main (void)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
# define FPU_CONTROL _FPU_DEFAULT
|
# define FPU_CONTROL _FPU_DEFAULT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
#ifdef _FPU_GETCW
|
#ifdef _FPU_GETCW
|
||||||
/* Some architectures don't have _FPU_GETCW (e.g. Linux/Alpha). */
|
/* Some architectures don't have _FPU_GETCW (e.g. Linux/Alpha). */
|
||||||
@ -44,3 +44,6 @@ main (void)
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
@ -54,8 +54,8 @@ int count_cldouble;
|
|||||||
#define NCALLS_INT 4
|
#define NCALLS_INT 4
|
||||||
#define NCCALLS 47
|
#define NCCALLS 47
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
@ -210,6 +210,9 @@ main (void)
|
|||||||
#include "test-tgmath.c"
|
#include "test-tgmath.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -334,8 +334,8 @@ test (const int Vint4, const long long int Vllong4)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
return test (vint1, vllong1);
|
return test (vint1, vllong1);
|
||||||
}
|
}
|
||||||
@ -366,6 +366,9 @@ main (void)
|
|||||||
#include "test-tgmath2.c"
|
#include "test-tgmath2.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -28,8 +28,8 @@ jump (int val)
|
|||||||
longjmp (env, val);
|
longjmp (env, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
int value;
|
int value;
|
||||||
|
|
||||||
@ -115,3 +115,6 @@ main (void)
|
|||||||
|
|
||||||
return lose ? EXIT_FAILURE : EXIT_SUCCESS;
|
return lose ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
@ -124,8 +124,8 @@ struct test2
|
|||||||
{ L("0x.e+0"), L("%g%c"), 2, '+' },
|
{ L("0x.e+0"), L("%g%c"), 2, '+' },
|
||||||
};
|
};
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
double d[6];
|
double d[6];
|
||||||
long l[6];
|
long l[6];
|
||||||
@ -268,3 +268,6 @@ main (void)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
@ -25,8 +25,8 @@ avx_enabled (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
/* Run AVX test only if AVX is supported. */
|
/* Run AVX test only if AVX is supported. */
|
||||||
if (avx_enabled ())
|
if (avx_enabled ())
|
||||||
@ -40,3 +40,6 @@ main (void)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../../test-skeleton.c"
|
||||||
|
Reference in New Issue
Block a user