diff options
author | DJ Delorie <dj@redhat.com> | 2017-08-17 17:58:25 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2017-08-17 18:00:51 -0400 |
commit | a3fe6a20bf81ef6a97a761dac9050517e7fd7a1f (patch) | |
tree | c25c69106d240af6ba39471fab71e61cd512a1b3 /nss/test-netdb.c | |
parent | c22845744cd931267e0d7cb2e2b35a0da9c9510a (diff) | |
download | glibc-a3fe6a20bf81ef6a97a761dac9050517e7fd7a1f.tar glibc-a3fe6a20bf81ef6a97a761dac9050517e7fd7a1f.tar.gz glibc-a3fe6a20bf81ef6a97a761dac9050517e7fd7a1f.tar.bz2 glibc-a3fe6a20bf81ef6a97a761dac9050517e7fd7a1f.zip |
Update nss tests to new skeleton
* bug17079.c: Update to new test harness.
* test-digits-dots.c: Likewise.
* test-netdb.c: Likewise.
* tst-field.c: Likewise.
* tst-nss-getpwent.c: Likewise.
* tst-nss-static.c: Likewise.
* tst-nss-test1.c: Likewise.
* tst-nss-test2.c: Likewise.
* tst-nss-test3.c: Likewise.
* tst-nss-test4.c: Likewise.
* tst-nss-test5.c: Likewise.
Diffstat (limited to 'nss/test-netdb.c')
-rw-r--r-- | nss/test-netdb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nss/test-netdb.c b/nss/test-netdb.c index 6b34b1a8f1..25f68647e0 100644 --- a/nss/test-netdb.c +++ b/nss/test-netdb.c @@ -40,6 +40,8 @@ #include <errno.h> #include "nss.h" +#include <support/support.h> + /* The following define is necessary for glibc 2.0.6 */ @@ -177,7 +179,7 @@ test_hosts (void) while (gethostname (name, namelen) < 0 && errno == ENAMETOOLONG) { namelen += 2; /* tiny increments to test a lot */ - name = realloc (name, namelen); + name = xrealloc (name, namelen); } if (gethostname (name, namelen) == 0) { @@ -336,5 +338,4 @@ do_test (void) return (error_count != 0); } -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" +#include <support/test-driver.c> |