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
This commit is contained in:
Segher Boessenkool 2014-12-27 17:36:20 +01:00 committed by Segher Boessenkool
parent c457584008
commit 2e4aa0a501
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-12-27 Segher Boessenkool <segher@kernel.crashing.org>
* 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 <hongjiu.lu@intel.com>
PR target/64409

View File

@ -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"]
}