diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:51:31 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:51:31 +0000 |
commit | f8b41b00226b5ad0dcdbad27951eddbbdae81e2a (patch) | |
tree | 92ad585fedd0f4f67494f77cf7343cf0274612d2 /gdb/testsuite/gdb.base/mips_pro.exp | |
parent | 289f9037cb9f11c5588dd3baf648e253ffc57574 (diff) | |
download | binutils-f8b41b00226b5ad0dcdbad27951eddbbdae81e2a.zip binutils-f8b41b00226b5ad0dcdbad27951eddbbdae81e2a.tar.gz binutils-f8b41b00226b5ad0dcdbad27951eddbbdae81e2a.tar.bz2 |
test suite update - gdb.base/[h-m]
Convert files gdb.base/[h-m]*.exp to use standard_output_file et al.
* hook-stop-continue.exp, hook-stop-frame.exp, huge.exp,
included.exp, inferior-died.exp, infnan.exp, info-fun.exp,
info-macros.exp, info-os.exp, info-proc.exp, info-target.exp,
infoline.exp, interp.exp, interrupt.exp, jit-simple.exp,
jit-so.exp, jump.exp, kill-after-signal.exp, label.exp, langs.exp,
lineinc.exp, list.exp, logical.exp, long_long.exp, longjmp.exp,
macscp.exp, maint.exp, memattr.exp, mips_pro.exp, miscexprs.exp,
morestack.exp, moribund-step.exp, multi-forks.exp: Use
standard_testfile, standard_output_file, prepare_for_testing,
clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/mips_pro.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/mips_pro.exp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp index 2c8e996..72e1981 100644 --- a/gdb/testsuite/gdb.base/mips_pro.exp +++ b/gdb/testsuite/gdb.base/mips_pro.exp @@ -14,9 +14,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -set testfile mips_pro -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile # Create and source the file that provides information about the compiler # used to compile the test case. @@ -27,23 +25,15 @@ if [get_compiler_info] { # This test must be compiled with -O2 if using gcc. +set options debug if { [test_compiler_info gcc-*-*] } then { - if { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" \ - executable {debug additional_flags=-O2 additional_flags=-fno-inline}] != "" } { - untested mips_pro.exp - return -1 - } -} else { - if { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested mips_pro.exp - return -1 - } + lappend options additional_flags=-O2 additional_flags=-fno-inline } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +if {[prepare_for_testing $testfile.exp $testfile $srcfile $options]} { + untested $testfile.exp + return -1 +} if [runto middle] then { # PR 3016 |