Index: gdb/testsuite/gdb.base/consecutive.exp |
diff --git a/gdb/testsuite/gdb.base/consecutive.exp b/gdb/testsuite/gdb.base/consecutive.exp |
index 50362743b4ba9963453f89d9e2591ed1c1d35611..be70e9f1928a7060fd3a83850da4fdf2c908bd98 100644 |
--- a/gdb/testsuite/gdb.base/consecutive.exp |
+++ b/gdb/testsuite/gdb.base/consecutive.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2001, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2001-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -20,24 +20,17 @@ |
# |
-set testfile "consecutive" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { |
- untested consecutive.exp |
+if [get_compiler_info] { |
return -1 |
} |
-if [get_compiler_info] { |
+if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug nowarnings}]} { |
+ untested $testfile.exp |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
- |
if ![runto_main] then { |
perror "couldn't run to breakpoint" |
continue |