gdb.base/async.exp: Use prepare_for_testing.
authorPedro Alves <palves@redhat.com>
Wed, 19 Mar 2014 15:22:44 +0000 (15:22 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 19 Mar 2014 15:51:29 +0000 (15:51 +0000)
gdb/testsuite/
2014-03-19  Pedro Alves  <palves@redhat.com>

* gdb.base/async.exp: Use prepare_for_testing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/async.exp

index cc8de97b1933d2643e9fa14ebb4b9a91a09ba55d..bb3d559f8237592fb56ba8b373e5b4855570a43d 100644 (file)
@@ -1,3 +1,7 @@
+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
index d4b2b2d8080d0c976b98bc9f0bbda8e6bbca25b8..02ca4d151e812cb39b857162973f5772e7379ede 100644 (file)
 
 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"
 
This page took 0.0388 seconds and 4 git commands to generate.