From: Segher Boessenkool Date: Sat, 27 Dec 2014 16:36:20 +0000 (+0100) Subject: ubsan-dg.exp (check_effective_target_fsanitize_undefined): Check if testcases run... X-Git-Tag: releases/gcc-5.1.0~2155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e4aa0a5016c595477c0638765b6ceef8e0fb3c0;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3725770050ca..ec4d75ea9488 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 52a13e2bb150..ca1e593b49cb 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"] }