aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-11 10:54:16 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-11 10:54:56 +0100
commita19c0a1db50ed3fd58715a1d78ea465d82fe9fd5 (patch)
tree48cbb4c2ef145f00af54150df37f1361c764d2b8
parent8cb5295d3f642af43694ba39bc56c8575380aeb3 (diff)
downloadglibc-a19c0a1db50ed3fd58715a1d78ea465d82fe9fd5.tar
glibc-a19c0a1db50ed3fd58715a1d78ea465d82fe9fd5.tar.gz
glibc-a19c0a1db50ed3fd58715a1d78ea465d82fe9fd5.tar.bz2
glibc-a19c0a1db50ed3fd58715a1d78ea465d82fe9fd5.zip
resolv: Use test framework in tst-resolv-network
The main function was left in place by accident when the test was imported.
-rw-r--r--ChangeLog5
-rw-r--r--resolv/tst-resolv-network.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 475945bc32..3654876b1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-11 Florian Weimer <fweimer@redhat.com>
+
+ * resolv/tst-resolv-network.c: Use test framework instead explicit
+ main function.
+
2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
* include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
diff --git a/resolv/tst-resolv-network.c b/resolv/tst-resolv-network.c
index df9daf8d58..7f5c29176e 100644
--- a/resolv/tst-resolv-network.c
+++ b/resolv/tst-resolv-network.c
@@ -214,8 +214,8 @@ check_long_name (void)
free (mem.buffer);
}
-int
-main (void)
+static int
+do_test (void)
{
struct resolv_test *obj = resolv_test_start
((struct resolv_redirect_config)
@@ -296,4 +296,8 @@ main (void)
check_long_name ();
resolv_test_end (obj);
+
+ return 0;
}
+
+#include <support/test-driver.c>