diff options
Diffstat (limited to 'inet')
-rw-r--r-- | inet/test-inet6_opt.c | 7 | ||||
-rw-r--r-- | inet/tst-gethnm.c | 7 | ||||
-rw-r--r-- | inet/tst-network.c | 7 | ||||
-rw-r--r-- | inet/tst-ntoa.c | 7 |
4 files changed, 20 insertions, 8 deletions
diff --git a/inet/test-inet6_opt.c b/inet/test-inet6_opt.c index 3bf319ef0c..a7ebf006c6 100644 --- a/inet/test-inet6_opt.c +++ b/inet/test-inet6_opt.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" diff --git a/inet/tst-gethnm.c b/inet/tst-gethnm.c index 8af44d66a1..dd3a547811 100644 --- a/inet/tst-gethnm.c +++ b/inet/tst-gethnm.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" diff --git a/inet/tst-network.c b/inet/tst-network.c index fc90bd7245..cc840e0d46 100644 --- a/inet/tst-network.c +++ b/inet/tst-network.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" diff --git a/inet/tst-ntoa.c b/inet/tst-ntoa.c index 9be91eb511..ef82d4d537 100644 --- a/inet/tst-ntoa.c +++ b/inet/tst-ntoa.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" |