| Index: gdb/testsuite/gdb.base/environ.exp
|
| diff --git a/gdb/testsuite/gdb.base/environ.exp b/gdb/testsuite/gdb.base/environ.exp
|
| index 2466c81be1a1ae7d96d53bff17b2c944722e5372..b5a9b2dc6bfed852a6149391c09b4054eaa5a74c 100644
|
| --- a/gdb/testsuite/gdb.base/environ.exp
|
| +++ b/gdb/testsuite/gdb.base/environ.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 1997-1999, 2003, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 1997-2013 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
|
| @@ -24,31 +24,14 @@ if ![istarget "hppa*-*-hpux*"] then {
|
| return
|
| }
|
|
|
| -set testfile "break"
|
| -set srcfile ${testfile}.c
|
| -set srcfile1 ${testfile}1.c
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_testfile break.c break1.c
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } {
|
| - untested environ.exp
|
| +if {[prepare_for_testing $testfile.exp $testfile \
|
| + [list $srcfile $srcfile2] {debug nowarnings}]} {
|
| + untested $testfile.exp
|
| return -1
|
| }
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } {
|
| - untested environ.exp
|
| - return -1
|
| -}
|
| -
|
| -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } {
|
| - untested environ.exp
|
| - return -1
|
| -}
|
| -
|
| -gdb_exit
|
| -gdb_start
|
| -gdb_reinitialize_dir $srcdir/$subdir
|
| -gdb_load ${binfile}
|
| -
|
| if ![runto_main] then { fail "environment command tests suppressed" }
|
|
|
| # (No, this is not really related to the environment commands. But it's
|
|
|