From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79936 invoked by alias); 9 Jul 2015 14:51:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 79918 invoked by uid 89); 9 Jul 2015 14:51:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: aloka.lostca.se Date: Thu, 09 Jul 2015 14:51:00 -0000 From: Arjun Shankar To: libc-alpha@sourceware.org Subject: [PATCH] Modify elf/tst-audit9.c to use test-skeleton.c Message-ID: <20150709145129.GA33555@aloka.lostca.se> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Content-Transfer-Encoding: 7bit X-SW-Source: 2015-07/txt/msg00302.txt.bz2 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii; format=fixed Content-Disposition: inline Content-length: 453 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 * 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(-) --Kj7319i9nmIyA2yE Content-Type: text/x-patch; charset=us-ascii; name="0001-Modify-elf-tst-audit9.c-to-use-test-skeleton.c.patch" Content-Disposition: attachment; filename="0001-Modify-elf-tst-audit9.c-to-use-test-skeleton.c.patch" Content-Transfer-Encoding: quoted-printable Content-length: 404 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 =20 -int main(void) +static int +do_test (void) { void *h =3D dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY); int (*fp)(void) =3D dlsym(h, "f"); return fp() - 1; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" --Kj7319i9nmIyA2yE--