about summary refs log tree commit diff
path: root/setjmp
diff options
context:
space:
mode:
authorArjun Shankar <arjun.is@lostca.se>2015-07-09 15:29:17 +0000
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-07-15 15:10:23 +0530
commit0035851c3c13f26b92fc076540d112069918a3e1 (patch)
tree09f6872ce8f8414ddda274fcb09c9a3169cde915 /setjmp
parente505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f (diff)
downloadglibc-0035851c3c13f26b92fc076540d112069918a3e1.tar.gz
glibc-0035851c3c13f26b92fc076540d112069918a3e1.tar.xz
glibc-0035851c3c13f26b92fc076540d112069918a3e1.zip
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  <arjun.is@lostca.se>

	* 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.
Diffstat (limited to 'setjmp')
-rw-r--r--setjmp/tst-setjmp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
index 264f517753..3d6c84908e 100644
--- a/setjmp/tst-setjmp.c
+++ b/setjmp/tst-setjmp.c
@@ -28,8 +28,8 @@ jump (int val)
   longjmp (env, val);
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   int value;
 
@@ -115,3 +115,6 @@ main (void)
 
   return lose ? EXIT_FAILURE : EXIT_SUCCESS;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"