From: "Ondřej Bílka" <neleai@seznam.cz>
To: Arjun Shankar <arjun.is@lostca.se>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c
Date: Thu, 09 Jul 2015 15:03:00 -0000 [thread overview]
Message-ID: <20150709150339.GA18674@domone> (raw)
In-Reply-To: <20150709145129.GA33555@aloka.lostca.se>
On Thu, Jul 09, 2015 at 02:51:30PM +0000, Arjun Shankar wrote:
>
> 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.
>
looks ok.
> 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(-)
>
> 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"
--
Defunct processes
next prev parent reply other threads:[~2015-07-09 15:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 14:51 Arjun Shankar
2015-07-09 15:03 ` Ondřej Bílka [this message]
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=20150709150339.GA18674@domone \
--to=neleai@seznam.cz \
--cc=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).