summaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/options.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/lib/options.exp')
-rw-r--r--gcc/testsuite/lib/options.exp11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/testsuite/lib/options.exp b/gcc/testsuite/lib/options.exp
index dcce43351b9..d1dacdaa32b 100644
--- a/gcc/testsuite/lib/options.exp
+++ b/gcc/testsuite/lib/options.exp
@@ -47,28 +47,31 @@ proc check_for_options {language gcc_options compiler_patterns compiler_non_patt
set gcc_output [gcc_target_compile $filename.c $filename.x executable $gcc_options]
remote_file build delete $filename.c $filename.x $filename.gcno
+ # Verify that COMPILER_PATTERRNS appear in gcc output.
foreach pattern [split $compiler_patterns "\n"] {
if {$pattern != ""} {
if {[regexp -- "$pattern" $gcc_output]} {
pass "$test $pattern"
} else {
if {$expected_failure != ""} {
- xfail "$test $pattern"
+ xfail "$test \"$pattern\" present in output"
} else {
- fail "$test $pattern"
+ fail "$test \"$pattern\" present in output"
}
}
}
}
+
+ # Verify that COMPILER_NON_PATTERRNS do not appear in gcc output.
foreach pattern [split $compiler_non_patterns "\n"] {
if {$pattern != ""} {
if {![regexp -- "$pattern" $gcc_output]} {
pass "$test $pattern"
} else {
if {$expected_failure != ""} {
- xfail "$test $pattern"
+ xfail "$test \"$pattern\" absent from output"
} else {
- fail "$test $pattern"
+ fail "$test \"$pattern\" absent from output"
}
}
}