2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
authorMichael Chastain <mec@google.com>
Thu, 18 Dec 2003 07:48:37 +0000 (07:48 +0000)
committerMichael Chastain <mec@google.com>
Thu, 18 Dec 2003 07:48:37 +0000 (07:48 +0000)
* gdb.base/environ.exp: Handle compiling test case from multiple
source files.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/environ.exp

index bdbce116cefb0c48d8ee7a44c5e0d02d8a27b2cd..3c999e7f6e6acb27bfc62bce46bdfd8c00c41b06 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-16  Michael Chastain  <mec.gnu@mindspring.com>
+
+       * gdb.base/environ.exp: Handle compiling test case from multiple
+       source files.
+
 2003-12-16  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.base/structs.exp: Call gdb_exit as well as gdb_start.
index 55ff0a0b779142d5b3945c92a3042c4531905beb..b00052ba00dd2353b9e2f57193076a99a8778f35 100644 (file)
@@ -1,5 +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
@@ -39,11 +38,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}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 "${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 "${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
This page took 0.032879 seconds and 4 git commands to generate.