This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PUSHED 4/8] gdb.base/async.exp: Use prepare_for_testing.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 19 Mar 2014 15:57:57 +0000
- Subject: [PUSHED 4/8] gdb.base/async.exp: Use prepare_for_testing.
- Authentication-results: sourceware.org; auth=none
- References: <1395244681-24272-1-git-send-email-palves at redhat dot com>
gdb/testsuite/
2014-03-19 Pedro Alves <palves@redhat.com>
* gdb.base/async.exp: Use prepare_for_testing.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.base/async.exp | 17 ++++-------------
2 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index cc8de97..bb3d559 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2014-03-19 Pedro Alves <palves@redhat.com>
+ * gdb.base/async.exp: Use prepare_for_testing.
+
+2014-03-19 Pedro Alves <palves@redhat.com>
+
* gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in
the same line.
diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp
index d4b2b2d..02ca4d1 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"
--
1.7.11.7