[COMMITTED] resolv: Use test framework in tst-resolv-network

Message ID 20171111095938.0B7FB439942E9@oldenburg.str.redhat.com
State New
Headers show
Series
  • [COMMITTED] resolv: Use test framework in tst-resolv-network
Related show

Commit Message

Florian Weimer Nov. 11, 2017, 9:59 a.m.
The main function was left in place by accident when the
test was imported.

2017-11-11  Florian Weimer  <fweimer@redhat.com>

	* resolv/tst-resolv-network.c: Use test framework instead explicit
	main function.

Patch

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>