From patchwork Thu Jul 9 14:51:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arjun Shankar X-Patchwork-Id: 7616 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@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, 9 Jul 2015 14:51:30 +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-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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(-) 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 -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"