crt: tests: update t_sigv Previously, this test would simply print an error message if SIGSEGV signal was not raised. Instead, exit with non-zero to signal an error. Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com> Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/testcases/t_sigv.c b/mingw-w64-crt/testcases/t_sigv.c index a860723..08a069d 100644 --- a/mingw-w64-crt/testcases/t_sigv.c +++ b/mingw-w64-crt/testcases/t_sigv.c
@@ -1,6 +1,7 @@ #include <setjmp.h> #include <signal.h> #include <stdio.h> +#include <stdlib.h> jmp_buf buf; @@ -25,7 +26,8 @@ { puts("Ready to catch"); v = *ptr; - puts("Bad"); + puts("ERROR: program continued"); + _exit (EXIT_FAILURE); } else {