From 63f7e4d2f563154d7f2454cb308278e64d92f941 Mon Sep 17 00:00:00 2001 From: Frances Wingerter Date: Tue, 23 Jul 2024 12:07:33 -0400 Subject: [PATCH] test_fault_handler: exit nonzero if expected segfault missing we previously tested for the printed message with FileCheck, but now our criterion-based tests care about exit codes this was hiding test failures on ARM64 --- runtime/libia2/include/test_fault_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/libia2/include/test_fault_handler.h b/runtime/libia2/include/test_fault_handler.h index b4ab78dc0..51251e3da 100644 --- a/runtime/libia2/include/test_fault_handler.h +++ b/runtime/libia2/include/test_fault_handler.h @@ -29,7 +29,7 @@ asm volatile("" : : : "memory"); \ volatile typeof(expr) _tmp = expr; \ printf("CHECK_VIOLATION: did not seg fault as expected\n"); \ - _exit(0); \ + _exit(1); \ _tmp; \ })