diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 22:29:06 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-30 22:29:06 +0000 |
commit | ae0d01ff0c8e4fcf419efb85a3f2e62c5f3a664c (patch) | |
tree | e9708fc0ab7842788533daae738320d5681d5b2c | |
parent | 8cff2ae624d212cd2377b9c36ddb052af0e3f6e8 (diff) | |
download | gdb-ae0d01ff0c8e4fcf419efb85a3f2e62c5f3a664c.zip gdb-ae0d01ff0c8e4fcf419efb85a3f2e62c5f3a664c.tar.gz gdb-ae0d01ff0c8e4fcf419efb85a3f2e62c5f3a664c.tar.bz2 |
* gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
provide DFP support.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dfp-test.exp | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2f3a5d7..1b06b5a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not + provide DFP support. + 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com> * gdb.arch/altivec-abi.exp: Run multiple times for GCC on GNU/Linux. diff --git a/gdb/testsuite/gdb.base/dfp-test.exp b/gdb/testsuite/gdb.base/dfp-test.exp index 06c43d1..c0dabb0 100644 --- a/gdb/testsuite/gdb.base/dfp-test.exp +++ b/gdb/testsuite/gdb.base/dfp-test.exp @@ -116,8 +116,10 @@ if $tracelevel { set testfile "dfp-test" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "debug"] != "" } { - untested "Couldn't compile ${srcfile}" +# 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}] != "" } { + verbose "Skipping DFP tests." return -1 } |