summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-22 08:44:44 +0000
committerjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-22 08:44:44 +0000
commit10db2a535b714dccf7ec2909079243fe4441aa82 (patch)
tree938320480d4affc005606c649a276522600fb641
parent2165588a33dc7d63840774b2aac61be999ef17ae (diff)
downloadgcc-10db2a535b714dccf7ec2909079243fe4441aa82.tar.gz
[Dejagnu] fix gcc-dg-prune glitch when filtering "relocation truncation" error
gcc/testsuite/ * lib/compat.exp (compat-run): Remove "unresolved". * lib/gcc-defs.exp (${tools}_check_compile): Update code logic for unsupported testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216543 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/compat.exp1
-rw-r--r--gcc/testsuite/lib/gcc-defs.exp17
3 files changed, 17 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fa09a9c10c3..b11d3a9dce4 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2014-10-22 Jiong Wang <jiong.wang@arm.com>
+
+ * lib/compat.exp (compat-run): Remove "unresolved".
+ * lib/gcc-defs.exp (${tools}_check_compile): Update code logic for
+ unsupported testcase.
+
2014-10-22 Jakub Jelinek <jakub@redhat.com>
PR target/63594
diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp
index 7ab85aafe50..45cf0e07d58 100644
--- a/gcc/testsuite/lib/compat.exp
+++ b/gcc/testsuite/lib/compat.exp
@@ -134,7 +134,6 @@ proc compat-run { testname objlist dest optall optfile optstr } {
"$options"]
if ![${tool}_check_compile "$testcase $testname link" "" \
$dest $comp_output] then {
- unresolved "$testcase $testname execute $optstr"
return
}
diff --git a/gcc/testsuite/lib/gcc-defs.exp b/gcc/testsuite/lib/gcc-defs.exp
index cb932382fa7..d4796674f3a 100644
--- a/gcc/testsuite/lib/gcc-defs.exp
+++ b/gcc/testsuite/lib/gcc-defs.exp
@@ -54,12 +54,17 @@ proc ${tool}_check_compile {testcase option objname gcc_output} {
if { [info proc ${tool}-dg-prune] != "" } {
global target_triplet
set gcc_output [${tool}-dg-prune $target_triplet $gcc_output]
- }
-
- set unsupported_message [${tool}_check_unsupported_p $gcc_output]
- if { $unsupported_message != "" } {
- unsupported "$testcase: $unsupported_message"
- return 0
+ if [string match "*::unsupported::*" $gcc_output] then {
+ regsub -- "::unsupported::" $gcc_output "" gcc_output
+ unsupported "$testcase: $gcc_output"
+ return 0
+ }
+ } else {
+ set unsupported_message [${tool}_check_unsupported_p $gcc_output]
+ if { $unsupported_message != "" } {
+ unsupported "$testcase: $unsupported_message"
+ return 0
+ }
}
# remove any leftover LF/CR to make sure any output is legit