This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Report UNRESOLVED on failures while detecting Cell/B.E.
- From: Ulrich Weigand <uweigand at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Aug 2015 17:36:20 -0000
- Subject: [binutils-gdb] Report UNRESOLVED on failures while detecting Cell/B.E.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4e83a1e776c0acdaca9e69be9576db9efcd5f511
commit 4e83a1e776c0acdaca9e69be9576db9efcd5f511
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Date: Thu Aug 27 19:06:03 2015 +0200
Report UNRESOLVED on failures while detecting Cell/B.E.
The gdb.cell testcases use the predicate skip_cell_tests defined in
lib/cell.exp to determine whether Cell/B.E. test cases ought to be
run. This tests verifies that we have a toolchain that supports
generating combined Cell/B.E. binaries, and that the target machine
actually is a Cell/B.E.
In order to do so, a small test program is built and run (under the
debugger). Any failure is taken as a sign that we don't have a
Cell/B.E. machine and the tests are to be skipped.
This has the unfortunate effect that a serious bug in GDB that causes
internal compiler errors even on the trivial test program does not
lead to any failures in the testsuite, since now all gdb.cell test
are simply skipped.
This patch changes skip_cell_tests to at least report UNRESOLVED
in cases where execution of the test program fails in unexpected
ways.
testsuite/ChangeLog:
* lib/cell.exp (skip_cell_tests): Report UNRESOLVED on unexpected
failures to run the test program under GDB.
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/lib/cell.exp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7b271e2..e5de0a3 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * lib/cell.exp (skip_cell_tests): Report UNRESOLVED on unexpected
+ failures to run the test program under GDB.
+
2015-08-26 Luis Machado <lgustavo@codesourcery.com>
* gdb.compile/compile-ifunc.exp (with_test_prefix): Force language
diff --git a/gdb/testsuite/lib/cell.exp b/gdb/testsuite/lib/cell.exp
index f7660a0..ee74831 100644
--- a/gdb/testsuite/lib/cell.exp
+++ b/gdb/testsuite/lib/cell.exp
@@ -139,7 +139,7 @@ gdb_caching_proc skip_cell_tests {
set result 1
}
default {
- verbose -log "\n$me Cell/B.E. hardware not detected (default case)"
+ unresolved "$me: unexpected failure"
set result 1
}
}