diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-04-07 16:32:44 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-04-07 16:32:44 +0000 |
commit | dbc528229122320946ed69ba24fcd0d6a0127998 (patch) | |
tree | a0225ab2edc50b6ed06023a34bec992749db41f3 /gdb/testsuite/gdb.base/ending-run.exp | |
parent | f04cc279d0e69c8a8eb54cf6053a5018dc30ceff (diff) | |
download | gdb-dbc528229122320946ed69ba24fcd0d6a0127998.zip gdb-dbc528229122320946ed69ba24fcd0d6a0127998.tar.gz gdb-dbc528229122320946ed69ba24fcd0d6a0127998.tar.bz2 |
Introduce test setup helpers.
* lib/gdb.exp (build_executable, clean_restart)
(prepare_for_testing): New.
* gdb.base/break.exp: Use prepare_for_testing, and clean_restart.
* gdb.base/return.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/ending-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/ending-run.exp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 75c16b2..c8a5712 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -22,30 +22,11 @@ # ending-run.exp -- Expect script to test ending a test run in gdb -if $tracelevel then { - strace $tracelevel +if { [prepare_for_testing ending-run.exp ending-run] } { + return -1 } - -set testfile ending-run -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} - -remote_exec build "rm -f ${binfile}" remote_exec build "rm -f core" - -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested ending-run.exp - return -1 -} - - - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - # CHFts23469: Test that you can "clear" a bp set at # a line _before_ the routine (which will default to the # first line in the routine, which turns out to correspond |