diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-26 17:32:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-26 17:32:44 +0000 |
commit | 481fc10041dc81c3664cfc67083504e35e31b289 (patch) | |
tree | 95967cf539e3d52927fbe2c606ffd0a2d1d75f43 /gdb/testsuite/gdb.stabs/exclfwd.exp | |
parent | 6fea9e186c3da74c8f0ba9d007522a7575d24a73 (diff) | |
download | binutils-gdb-481fc10041dc81c3664cfc67083504e35e31b289.tar.gz |
* gdb.stabs/weird.exp: Remove directory-checking code. Use
standard_output_file.
* gdb.stabs/exclfwd.exp: Use standard_testfile,
prepare_for_testing. Remove directory-checking code.
Diffstat (limited to 'gdb/testsuite/gdb.stabs/exclfwd.exp')
-rw-r--r-- | gdb/testsuite/gdb.stabs/exclfwd.exp | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/gdb/testsuite/gdb.stabs/exclfwd.exp b/gdb/testsuite/gdb.stabs/exclfwd.exp index 8e81440afbf..77e2d5ddebd 100644 --- a/gdb/testsuite/gdb.stabs/exclfwd.exp +++ b/gdb/testsuite/gdb.stabs/exclfwd.exp @@ -16,36 +16,17 @@ # Please email any bugs, comments, and/or additions to this file to: # bug-gdb@gnu.org -# If the test directory was not created by configure then skip -# this test. -if ![file isdirectory ${objdir}/${subdir}] then { - return 0 -} - # # test running programs # -set testfile exclfwd -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile exclfwd1.c exclfwd2.c -foreach file {exclfwd1 exclfwd2} { - if {[gdb_compile "${srcdir}/${subdir}/${file}.c" "${file}.o" object {debug}] != ""} { - untested exclfwd.exp - return -1 - } +if {[prepare_for_testing $testfile.exp $testfile \ + [list $srcfile $srcfile2] debug]} { + return -1 } -if {[gdb_compile "exclfwd1.o exclfwd2.o" ${binfile} executable {debug}] != "" } { - untested exclfwd.exp - return -1 -} - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - if ![runto_main] then { perror "couldn't run to breakpoint" continue |