diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:47:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:47:53 +0000 |
commit | a64d25307da684e22f98b1bc19db43fb7d104999 (patch) | |
tree | 93789a696087acbce54badb589761f41ce71c7d8 /gdb/testsuite/gdb.base/annota1.exp | |
parent | 97f8dd09807815bafe225641b68c8526ba7756cc (diff) | |
download | gdb-a64d25307da684e22f98b1bc19db43fb7d104999.zip gdb-a64d25307da684e22f98b1bc19db43fb7d104999.tar.gz gdb-a64d25307da684e22f98b1bc19db43fb7d104999.tar.bz2 |
test suite update - gdb.base/[ab]
Convert files gdb.base/[ab]*.exp to use standard_output_file et al.
* a2-run.exp, all-bin.exp, annota1.exp, annota3.exp, anon.exp,
args.exp, arithmet.exp, arrayidx.exp, assign.exp, async-shell.exp,
async.exp, attach-pie-misread.exp, attach-pie-noexec.exp,
attach-twice.exp, attach.exp, auxv.exp, bang.exp, bfp-test.exp,
bigcore.exp, bitfields.exp, bitfields2.exp, break-entry.exp,
break-interp.exp, break-on-linker-gcd-function.exp,
breakpoint-shadow.exp: Use standard_testfile,
standard_output_file, prepare_for_testing, clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/annota1.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/annota1.exp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp index 2015154..541108a 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -31,9 +31,7 @@ set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n" # test running programs # -set testfile "annota1" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile .c if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { untested annota1.exp @@ -41,10 +39,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +clean_restart ${binfile} # The commands we test here produce many lines of output; disable "press # <return> to continue" prompts. @@ -445,10 +440,10 @@ if { [remote_file host exists core] } { } proc thread_test {} { - global objdir subdir srcdir testfile + global subdir srcdir testfile global gdb_prompt old_gdb_prompt set srcfile watch_thread_num.c - set binfile ${objdir}/${subdir}/${testfile}-watch_thread_num + set binfile [standard_output_file ${testfile}-watch_thread_num] set gdb_prompt $old_gdb_prompt if { ![get_compiler_info] && [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] == "" } { |