public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c
@ 2015-07-09 14:51 Arjun Shankar
  2015-07-09 15:03 ` Ondřej Bílka
  2015-07-15  9:42 ` Siddhesh Poyarekar
  0 siblings, 2 replies; 3+ messages in thread
From: Arjun Shankar @ 2015-07-09 14:51 UTC (permalink / raw)
  To: libc-alpha

[-- 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"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c
  2015-07-09 14:51 [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c Arjun Shankar
@ 2015-07-09 15:03 ` Ondřej Bílka
  2015-07-15  9:42 ` Siddhesh Poyarekar
  1 sibling, 0 replies; 3+ messages in thread
From: Ondřej Bílka @ 2015-07-09 15:03 UTC (permalink / raw)
  To: Arjun Shankar; +Cc: libc-alpha

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c
  2015-07-09 14:51 [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c Arjun Shankar
  2015-07-09 15:03 ` Ondřej Bílka
@ 2015-07-15  9:42 ` Siddhesh Poyarekar
  1 sibling, 0 replies; 3+ messages in thread
From: Siddhesh Poyarekar @ 2015-07-15  9:42 UTC (permalink / raw)
  To: Arjun Shankar; +Cc: libc-alpha

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.

Committed.

Thanks,
Siddhesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-15  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 14:51 [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c Arjun Shankar
2015-07-09 15:03 ` Ondřej Bílka
2015-07-15  9:42 ` Siddhesh Poyarekar

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).