OSDN Git Service

* gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
authoruweigand <uweigand>
Tue, 30 Oct 2007 22:29:05 +0000 (22:29 +0000)
committeruweigand <uweigand>
Tue, 30 Oct 2007 22:29:05 +0000 (22:29 +0000)
provide DFP support.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/dfp-test.exp

index 2f3a5d7..1b06b5a 100644 (file)
@@ -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.
index 06c43d1..c0dabb0 100644 (file)
@@ -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
 }