From 0035851c3c13f26b92fc076540d112069918a3e1 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Thu, 9 Jul 2015 15:29:17 +0000 Subject: Modify several tests to use test-skeleton.c These tests were skipped by the use-test-skeleton conversion done in commit 29955b5d because they were reused in other tests via the #include directive, and so deemed worth an inspection before they were modified. This has now been done. ChangeLog: 2015-07-09 Arjun Shankar * elf/tst-leaks1.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * localedata/tst-langinfo.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-fpucw.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-tgmath.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-tgmath2.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * setjmp/tst-setjmp.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/tst-sscanf.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * sysdeps/x86_64/tst-audit6.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. --- sysdeps/x86_64/tst-audit6.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/x86_64/tst-audit6.c b/sysdeps/x86_64/tst-audit6.c index 64209a152e..f2f6a487c4 100644 --- a/sysdeps/x86_64/tst-audit6.c +++ b/sysdeps/x86_64/tst-audit6.c @@ -25,8 +25,8 @@ avx_enabled (void) } -int -main (void) +static int +do_test (void) { /* Run AVX test only if AVX is supported. */ if (avx_enabled ()) @@ -40,3 +40,6 @@ main (void) } return 0; } + +#define TEST_FUNCTION do_test () +#include "../../test-skeleton.c" -- cgit v1.2.3