This is the mail archive of the gdb-patches@sources.redhat.com 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/obvious/testsuite] sect-cmd.exp: compile break.c, break1.c


Here is another hppa*-hp-hpux* test which uses break.c.

This test script needs more work beyond this.  It's also a good
candidate for running on all targets, not just hppa*-hp-hpux*.

I tested this on native hppa2.0w-hp-hpux11.11.

I am committing this as an obvious fix.

Michael C

===

2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>

	* gdb.base/sect-cmd.exp: Handle compiling test case from multiple
	source files.

Index: sect-cmd.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sect-cmd.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 sect-cmd.exp
*** sect-cmd.exp	6 Mar 2001 08:21:51 -0000	1.2
--- sect-cmd.exp	18 Dec 2003 16:17:13 -0000
***************
*** 1,4 ****
! #   Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
--- 1,4 ----
! # Copyright 1997, 1998, 1999, 2003 Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
*************** if ![istarget "hppa*-*-hpux*"] then {
*** 40,48 ****
  
  set testfile "break"
  set srcfile ${testfile}.c
  set binfile ${objdir}/${subdir}/${testfile}
! if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
!      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
  gdb_exit
--- 40,58 ----
  
  set testfile "break"
  set srcfile ${testfile}.c
+ set srcfile1 ${testfile}1.c
  set binfile ${objdir}/${subdir}/${testfile}
! 
! if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug additional_flags=-w}] != "" } {
!     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
! }
! 
! if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug additional_flags=-w}] != "" } {
!     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
! }
! 
! if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug additional_flags=-w}] != "" } {
!     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
  gdb_exit


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