about summary refs log tree commit diff
path: root/debug/tst-longjmp_chk.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-12-21 15:59:15 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-12-29 10:57:03 -0300
commit9556acd249687ac562deb6309503165d66eb06fa (patch)
tree683dede674dfe0b266a7fe143bbe733773856302 /debug/tst-longjmp_chk.c
parentfce5528fcb58aa3f44bdc6cbecdd5f6b75145b0c (diff)
downloadglibc-9556acd249687ac562deb6309503165d66eb06fa.tar.gz
glibc-9556acd249687ac562deb6309503165d66eb06fa.tar.xz
glibc-9556acd249687ac562deb6309503165d66eb06fa.zip
debug: Adapt fortify tests to libsupport
Checked on aarch64, armhf, x86_64, and i686.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug/tst-longjmp_chk.c')
-rw-r--r--debug/tst-longjmp_chk.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/debug/tst-longjmp_chk.c b/debug/tst-longjmp_chk.c
index e4e93d2a36..37f858606b 100644
--- a/debug/tst-longjmp_chk.c
+++ b/debug/tst-longjmp_chk.c
@@ -10,11 +10,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-
-static int do_test(void);
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
-
+#include <support/support.h>
 
 static jmp_buf b;
 
@@ -76,3 +72,5 @@ do_test (void)
   puts ("second longjmp returned");
   return 1;
 }
+
+#include <support/test-driver.c>