aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-12-18 16:25:21 +0000
committerMichael Chastain <mec@google.com>2003-12-18 16:25:21 +0000
commit850742db45a7f51ccb58011e12984fa9be5782e4 (patch)
tree2d9576cf354c4f25ff4d89e1fe05a5c9648b41b0 /gdb
parent44dbf3639f127af46d569ad96b6242dfbc4c0a89 (diff)
downloadbinutils-850742db45a7f51ccb58011e12984fa9be5782e4.zip
binutils-850742db45a7f51ccb58011e12984fa9be5782e4.tar.gz
binutils-850742db45a7f51ccb58011e12984fa9be5782e4.tar.bz2
2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/sect-cmd.exp: Handle compiling test case from multiple source files.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/sect-cmd.exp16
2 files changed, 18 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3c999e7..aac4e5d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
+
+ * gdb.base/sect-cmd.exp: Handle compiling test case from multiple
+ source files.
+
2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/environ.exp: Handle compiling test case from multiple
diff --git a/gdb/testsuite/gdb.base/sect-cmd.exp b/gdb/testsuite/gdb.base/sect-cmd.exp
index 10c0e74..0b86b79 100644
--- a/gdb/testsuite/gdb.base/sect-cmd.exp
+++ b/gdb/testsuite/gdb.base/sect-cmd.exp
@@ -1,4 +1,4 @@
-# Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
+# 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
@@ -40,9 +40,19 @@ if ![istarget "hppa*-*-hpux*"] then {
set testfile "break"
set srcfile ${testfile}.c
+set srcfile1 ${testfile}1.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."
+
+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