[PATCH] gdb: Use UNSUPPORTED not FAIL for unsupported target features
Andrew Burgess
andrew.burgess@embecosm.com
Wed Jun 8 11:40:00 GMT 2016
* Yao Qi <qiyaoltc@gmail.com> [2016-06-08 11:25:29 +0100]:
> On Wed, Jun 8, 2016 at 10:26 AM, Andrew Burgess
> <andrew.burgess@embecosm.com> wrote:
> > If a target does not support making function calls from GDB then we
> > abandon the gdb.base/callfuncs.exp test file early. Currently we report
> > a single FAIL before leaving the test file, this commit changes this to
> > a single UNSUPPORTED.
>
> XFAIL is reported, like this,
>
> XFAIL: gdb.base/callfuncs.exp: This target can not call functions (PRMS 2416)
>
> I suspect you get FAIL because your target_triplet is foo-bar, so
> *-*-* doesn't match.
That's a good point. I've updated the patch to say XFAIL to
UNSUPPORTED, as I still think that the change is sensible. New
version below.
Thanks,
Andrew
---
gdb: Use UNSUPPORTED not XFAIL for unsupported target features
If a target does not support making function calls from GDB then we
abandon the gdb.base/callfuncs.exp test file early. Currently we report
a single XFAIL before leaving the test file, this commit changes this to
a single UNSUPPORTED.
gdb/testsuite/ChangeLog:
* gdb.base/callfuncs.exp: Report unsupported rather than xfail for
unsupported target features.
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 98a798b..61ec0e7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.base/callfuncs.exp: Report unsupported rather than xfail for
+ unsupported target features.
+
2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
* gdb.mi/mi-record-changed.exp: Adjust =record-started output
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index fbe896c..1ec33d8 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -26,8 +26,7 @@ if [support_complex_tests] {
# Some targets can't do function calls, so don't even bother with this
# test.
if [target_info exists gdb,cannot_call_functions] {
- setup_xfail "*-*-*" 2416
- fail "This target can not call functions"
+ unsupported "This target can not call functions"
continue
}
More information about the Gdb-patches
mailing list