diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:53:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:53:49 +0000 |
commit | 822bd149bfa2e13ddfddd092bfc9f2886bf878d8 (patch) | |
tree | 0bc252ec0e8a9e52f38a49c41ee76adbc2d004de /gdb/testsuite/gdb.base/nodebug.exp | |
parent | f8b41b00226b5ad0dcdbad27951eddbbdae81e2a (diff) | |
download | gdb-822bd149bfa2e13ddfddd092bfc9f2886bf878d8.zip gdb-822bd149bfa2e13ddfddd092bfc9f2886bf878d8.tar.gz gdb-822bd149bfa2e13ddfddd092bfc9f2886bf878d8.tar.bz2 |
test suite update - gdb.base/[n-r]
Convert files gdb.base/[n-r]*.exp to use standard_output_file et al.
* gdb.base/nextoverexit.exp, gdb.base/nextoverexit.exp,
gdb.base/nodebug.exp, gdb.base/nofield.exp, gdb.base/nostdlib.exp,
gdb.base/opaque.exp, gdb.base/overlays.exp, gdb.base/pc-fp.exp,
gdb.base/pending.exp, gdb.base/permissions.exp,
gdb.base/pie-execl.exp, gdb.base/pointers.exp,
gdb.base/pr11022.exp, gdb.base/print-file-var.exp,
gdb.base/printcmds.exp, gdb.base/prologue.exp,
gdb.base/psymtab.exp, gdb.base/ptr-typedef.exp,
gdb.base/ptype.exp, gdb.base/randomize.exp,
gdb.base/readline-ask.exp, gdb.base/recpar.exp,
gdb.base/recurse.exp, gdb.base/relativedebug.exp,
gdb.base/relocate.exp, gdb.base/remote.exp, gdb.base/reread.exp,
gdb.base/return-nodebug.exp, gdb.base/return2.exp: Use
standard_testfile, standard_output_file, prepare_for_testing,
clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/nodebug.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/nodebug.exp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp index e451b7b..2c991dc 100644 --- a/gdb/testsuite/gdb.base/nodebug.exp +++ b/gdb/testsuite/gdb.base/nodebug.exp @@ -16,9 +16,7 @@ # Test that things still (sort of) work when compiled without -g. -set testfile nodebug -set srcfile $srcdir/$subdir/$testfile.c -set binfile $objdir/$subdir/$testfile +standard_testfile .c if [get_compiler_info] { return -1 @@ -32,17 +30,14 @@ if [test_compiler_info "xlc-*"] { set exec_opts "" } -if { [gdb_compile $srcfile $binfile executable $exec_opts] != "" } { +if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } { untested "Couldn't compile $srcfile." return -1 } # Start with a fresh gdb. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile if [runto inner] then { |