public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Arjun Shankar <arjun.is@lostca.se>
To: libc-alpha@sourceware.org
Subject: [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c
Date: Thu, 09 Jul 2015 14:51:00 -0000	[thread overview]
Message-ID: <20150709145129.GA33555@aloka.lostca.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]


This test was skipped by the use-test-skeleton conversion script
[29955b5d] because the definition of `main' did not begin according to
the GNU formatting style that the script assumed.

ChangeLog:

2015-07-09  Arjun Shankar  <arjun.is@lostca.se>

	* elf/tst-audit9.c (main): Converted to ...
	(do_test): ... this.
	(TEST_FUNCTION): New macro.
	Include test-skeleton.c.
---
 elf/tst-audit9.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


[-- Attachment #2: 0001-Modify-elf-tst-audit9.c-to-use-test-skeleton.c.patch --]
[-- Type: text/x-patch, Size: 416 bytes --]

diff --git a/elf/tst-audit9.c b/elf/tst-audit9.c
index 0982d8b..7b90a5a 100644
--- a/elf/tst-audit9.c
+++ b/elf/tst-audit9.c
@@ -1,8 +1,12 @@
 #include <dlfcn.h>
 
-int main(void)
+static int
+do_test (void)
 {
   void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
   int (*fp)(void) = dlsym(h, "f");
   return fp() - 1;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"

             reply	other threads:[~2015-07-09 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 14:51 Arjun Shankar [this message]
2015-07-09 15:03 ` Ondřej Bílka
2015-07-15  9:42 ` Siddhesh Poyarekar

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=20150709145129.GA33555@aloka.lostca.se \
    --to=arjun.is@lostca.se \
    --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).