This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fail dfp-test quietly if toolchain does not support DFP


Hello,

I noticed that the dfp-test case fails displaying a large number of
compiler error messages if the system toolchain does not yet support
the DFP language extension.  To reduce the noise, I've changed the
test case to use the "quiet" gdb_compile option, which will suppress
those messages.

Committed to mainline.

Bye,
Ulrich


ChangeLog:

	* gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
	provide DFP support.

Index: gdb/testsuite/gdb.base/dfp-test.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/dfp-test.exp,v
retrieving revision 1.1
diff -c -p -r1.1 dfp-test.exp
*** gdb/testsuite/gdb.base/dfp-test.exp	25 Oct 2007 18:09:45 -0000	1.1
--- gdb/testsuite/gdb.base/dfp-test.exp	30 Oct 2007 22:26:34 -0000
*************** if $tracelevel {
*** 116,123 ****
  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}"
      return -1
  }
  
--- 116,125 ----
  set testfile "dfp-test"
  set srcfile ${testfile}.c
  set binfile ${objdir}/${subdir}/${testfile}
! # 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
  }
  
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]