diff options
author | Michael Adam <obnox@samba.org> | 2008-02-28 21:43:06 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-28 23:01:15 +0100 |
commit | dfc84928d722191dad264a7206e20919c140e3ea (patch) | |
tree | ecc069f1f8468fe170afa08a86d6c94a8ecb1208 /source4/lib/replace/test/testsuite.c | |
parent | 2ba62662f8e2578153be3125eb557b9349ccfd3b (diff) | |
download | samba-dfc84928d722191dad264a7206e20919c140e3ea.tar.gz samba-dfc84928d722191dad264a7206e20919c140e3ea.tar.bz2 samba-dfc84928d722191dad264a7206e20919c140e3ea.zip |
libreplace: add extended getifaddrs test that prints out the interfaces.
Michael
(This used to be commit 9d2bab09aac22c00fe23f1e1265a2dbd0901e9ce)
Diffstat (limited to 'source4/lib/replace/test/testsuite.c')
-rw-r--r-- | source4/lib/replace/test/testsuite.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/lib/replace/test/testsuite.c b/source4/lib/replace/test/testsuite.c index c9f3301005..b538360365 100644 --- a/source4/lib/replace/test/testsuite.c +++ b/source4/lib/replace/test/testsuite.c @@ -856,21 +856,18 @@ static int test_strptime(void) return libreplace_test_strptime(); } +extern int getifaddrs_test(void); + static int test_getifaddrs(void) { - struct ifaddrs *ifa; - int ret; printf("test: getifaddrs\n"); - ret = getifaddrs(&ifa); - if (ret != 0) { + if (getifaddrs_test() != 0) { printf("failure: getifaddrs\n"); return false; } - freeifaddrs(ifa); - printf("success: getifaddrs\n"); return true; } |