From: uweigand Date: Tue, 30 Oct 2007 22:29:05 +0000 (+0000) Subject: * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=389c1cdec8c24e817a49d2fbb515751ae2cfa636;p=pf3gnuchains%2Fpf3gnuchains3x.git * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not provide DFP support. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2f3a5d7c7c..1b06b5af1e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Ulrich Weigand + + * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not + provide DFP support. + 2007-10-30 Daniel Jacobowitz * 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 06c43d15f8..c0dabb09a3 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 }