[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    [commit] Fail dfp-test quietly if toolchain does not support DFP
From:       uweigand () de ! ibm ! com (Ulrich Weigand)
Date:       2007-10-31 1:51:00
Message-ID: 200710302232.l9UMW4Yl012590 () d12av02 ! megacenter ! de ! ibm ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic