From: fweimer@redhat.com (Florian Weimer)
To: libc-alpha@sourceware.org
Subject: [PATCH COMMITTED] resolv: Use test framework in tst-resolv-network
Date: Sat, 11 Nov 2017 09:59:00 -0000 [thread overview]
Message-ID: <20171111095938.0B7FB439942E9@oldenburg.str.redhat.com> (raw)
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.
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>
reply other threads:[~2017-11-11 9:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171111095938.0B7FB439942E9@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).