diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-01-18 15:17:57 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-01-18 15:17:57 +0800 |
commit | 709a3d07f330cc75031529f8952ceb19d7095df3 (patch) | |
tree | 0606d8d2700fffe3f8beca359591d245131781af /gdb/testsuite | |
parent | 0c80c644641f67b18661a63b19c47074b308bc18 (diff) | |
download | fsf-binutils-gdb-709a3d07f330cc75031529f8952ceb19d7095df3.zip fsf-binutils-gdb-709a3d07f330cc75031529f8952ceb19d7095df3.tar.gz fsf-binutils-gdb-709a3d07f330cc75031529f8952ceb19d7095df3.tar.bz2 |
gdb: testsuite: print explicit test result for gdb.base/dfp-test.exp
In the current code, if decimal floating point is not supported for
this target, there is no binary file dfp-test, and also there is no
test result after execute the following commands:
$ make check-gdb TESTS="gdb.base/dfp-test.exp"
$ grep error gdb/testsuite/gdb.log
/home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.c:39:1: error: decimal floating point not supported for this target
[...]
$ cat gdb/testsuite/gdb.sum
[...]
Running target unix
Running /home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.exp ...
=== gdb Summary ===
[...]
With this patch:
$ make check-gdb TESTS="gdb.base/dfp-test.exp"
$ cat gdb/testsuite/gdb.sum
[...]
Running target unix
Running /home/loongson/gdb.git/gdb/testsuite/gdb.base/dfp-test.exp ...
UNSUPPORTED: gdb.base/dfp-test.exp: decimal floating point not supported for this target.
=== gdb Summary ===
# of unsupported tests 1
[...]
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.base/dfp-test.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/dfp-test.exp b/gdb/testsuite/gdb.base/dfp-test.exp index 4866d0a..6c3de28 100644 --- a/gdb/testsuite/gdb.base/dfp-test.exp +++ b/gdb/testsuite/gdb.base/dfp-test.exp @@ -23,6 +23,7 @@ standard_testfile .c # Try to compile the test case. If we can't, assume the # toolchain does not yet provide DFP support and bail out. if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } { + unsupported "decimal floating point not supported for this target." verbose "Skipping DFP tests." return -1 } |