diff options
author | Pedro Alves <palves@redhat.com> | 2014-03-19 15:22:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-03-19 15:51:29 +0000 |
commit | 148e57e2327e27e3d8bb6040138ea0843cf55e33 (patch) | |
tree | 994427fa7a067e42ae1133b50d525ac1d4035fb8 /gdb/testsuite/gdb.base/async.exp | |
parent | f48088c7de251319d9f874d07317d867e0cf66cb (diff) | |
download | binutils-gdb-148e57e2327e27e3d8bb6040138ea0843cf55e33.tar.gz |
gdb.base/async.exp: Use prepare_for_testing.
gdb/testsuite/
2014-03-19 Pedro Alves <palves@redhat.com>
* gdb.base/async.exp: Use prepare_for_testing.
Diffstat (limited to 'gdb/testsuite/gdb.base/async.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/async.exp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp index d4b2b2d8080..02ca4d151e8 100644 --- a/gdb/testsuite/gdb.base/async.exp +++ b/gdb/testsuite/gdb.base/async.exp @@ -20,15 +20,6 @@ standard_testfile -if [get_compiler_info] { - return -1 -} - -if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - untested $testfile.exp - return -1 -} - ######################################## ## ## Don't do any of these tests until we reach consensus on this file. @@ -36,10 +27,10 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { return 0 ######################################## -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { + untested $testfile.exp + return -1 +} gdb_test_no_output "set target-async on" |