Index: gdb/testsuite/gdb.base/sizeof.exp |
diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp |
index 0c64e013f7b7af53e3da56d061067dc28f3c8f36..af59e3bc76b759c2b4b3dd3a094fd6913cd972dd 100644 |
--- a/gdb/testsuite/gdb.base/sizeof.exp |
+++ b/gdb/testsuite/gdb.base/sizeof.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2000, 2002-2005, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2000-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 |
@@ -16,7 +16,7 @@ |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
if [target_info exists gdb,noinferiorio] { |
- verbose "Skipping fileio.exp because of no fileio capabilities." |
+ verbose "Skipping sizeof.exp because of no fileio capabilities." |
continue |
} |
@@ -24,22 +24,16 @@ if [target_info exists gdb,noinferiorio] { |
# test running programs |
# |
-set testfile "sizeof" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
- untested sizeof.exp |
- return -1 |
-} |
+standard_testfile |
if [get_compiler_info] { |
- return -1; |
+ return -1 |
} |
-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 |
+} |
# |
# set it up at a breakpoint so we can play with the variable values |