From 2e4aa0a5016c595477c0638765b6ceef8e0fb3c0 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Sat, 27 Dec 2014 17:36:20 +0100 Subject: [PATCH] ubsan-dg.exp (check_effective_target_fsanitize_undefined): Check if testcases run without errors, not just if they compile. * lib/ubsan-dg.exp (check_effective_target_fsanitize_undefined): Check if testcases run without errors, not just if they compile. From-SVN: r219084 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/ubsan-dg.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3725770050c..ec4d75ea948 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-27 Segher Boessenkool + + * lib/ubsan-dg.exp (check_effective_target_fsanitize_undefined): + Check if testcases run without errors, not just if they compile. + 2014-12-26 H.J. Lu PR target/64409 diff --git a/gcc/testsuite/lib/ubsan-dg.exp b/gcc/testsuite/lib/ubsan-dg.exp index 52a13e2bb15..ca1e593b49c 100644 --- a/gcc/testsuite/lib/ubsan-dg.exp +++ b/gcc/testsuite/lib/ubsan-dg.exp @@ -18,7 +18,7 @@ # code, 0 otherwise. proc check_effective_target_fsanitize_undefined {} { - return [check_no_compiler_messages fsanitize_undefined executable { + return [check_runtime fsanitize_undefined { int main (void) { return 0; } } "-fsanitize=undefined"] } -- 2.30.2