Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+2014-02-08 Mike Frysinger <vapier@gentoo.org>
+
+ * debug/tst-longjmp_chk.c: Add header comment and include
+ ../test-skeleton.c.
+ (do_test): Mark static.
+ (TEST_FUNCTION): Define.
+
2014-02-08 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
+/* Basic test to make sure doing a longjmp to a jmpbuf with an invalid sp
+ is caught by the fortification code. */
#include <errno.h>
#include <fcntl.h>
#include <paths.h>
}
-int
-main (void)
+static int
+do_test (void)
{
struct sigaction sa;
sa.sa_handler = handler;
puts ("second longjmp returned");
return 1;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"