diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/test-ffs.c | 7 | ||||
-rw-r--r-- | string/tst-bswap.c | 7 | ||||
-rw-r--r-- | string/tst-inlcall.c | 7 | ||||
-rw-r--r-- | string/tst-strtok.c | 7 | ||||
-rw-r--r-- | string/tst-strxfrm.c | 7 |
5 files changed, 25 insertions, 10 deletions
diff --git a/string/test-ffs.c b/string/test-ffs.c index 7ac1dd6bfd..a64a1cccc1 100644 --- a/string/test-ffs.c +++ b/string/test-ffs.c @@ -21,8 +21,8 @@ #include <stdio.h> #include <string.h> -int -main (void) +static int +do_test (void) { int failures = 0; int i; @@ -61,3 +61,6 @@ main (void) return failures; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" diff --git a/string/tst-bswap.c b/string/tst-bswap.c index cca704c0d2..6c1c911ec8 100644 --- a/string/tst-bswap.c +++ b/string/tst-bswap.c @@ -21,8 +21,8 @@ extern unsigned long long int wash (unsigned long long int a); -int -main (void) +static int +do_test (void) { int result = 0; @@ -71,3 +71,6 @@ wash (unsigned long long int a) regards the argument to the bswap_*() functions as constant. */ return a + 0; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" diff --git a/string/tst-inlcall.c b/string/tst-inlcall.c index 32d88631f5..0f8b1bdae4 100644 --- a/string/tst-inlcall.c +++ b/string/tst-inlcall.c @@ -31,8 +31,8 @@ #include <fcntl.h> -int -main (void) +static int +do_test (void) { int status; int errors = 0; @@ -80,3 +80,6 @@ main (void) } return status; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" diff --git a/string/tst-strtok.c b/string/tst-strtok.c index 7e34aeefaa..6fbef9f33e 100644 --- a/string/tst-strtok.c +++ b/string/tst-strtok.c @@ -2,8 +2,8 @@ #include <stdio.h> #include <string.h> -int -main (void) +static int +do_test (void) { char buf[1] = { 0 }; int result = 0; @@ -21,3 +21,6 @@ main (void) return result; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" diff --git a/string/tst-strxfrm.c b/string/tst-strxfrm.c index 2ae2e2952f..f48cfc0da4 100644 --- a/string/tst-strxfrm.c +++ b/string/tst-strxfrm.c @@ -58,8 +58,8 @@ test (const char *locale) } -int -main (void) +static int +do_test (void) { int result = 0; @@ -69,3 +69,6 @@ main (void) return result; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |