summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/store.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-01-26 18:43:43 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-01-26 18:43:43 +0000
commite229648ec495cc781bdd56b437eed612c584624d (patch)
tree95fbbe92cb3d36e81b214e0074cb70a6553a75b1 /gdb/testsuite/gdb.base/store.exp
parentc9ba0c87bf3595762506825b30f0ebcb9da53129 (diff)
gdb/testsuite/
Code cleanup. * gdb.base/restore.exp: Replace gdb_compile, gdb_exit, gdb_start, gdb_reinitialize_dir and gdb_load by standard_testfile, set executable and prepare_for_testing. * gdb.base/store.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/store.exp')
-rw-r--r--gdb/testsuite/gdb.base/store.exp16
1 files changed, 3 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/store.exp b/gdb/testsuite/gdb.base/store.exp
index fb6a6a669c..292a319613 100644
--- a/gdb/testsuite/gdb.base/store.exp
+++ b/gdb/testsuite/gdb.base/store.exp
@@ -15,15 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# test running programs
-#
+standard_testfile
+set executable $testfile
-set testfile "store"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested store.exp
+if { [prepare_for_testing $testfile.exp $executable $srcfile] } {
return -1
}
@@ -31,11 +26,6 @@ if [get_compiler_info] {
return -1;
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
#
# set it up at a breakpoint so we can play with the variable values
#