Index: gdb/testsuite/gdb.base/structs3.exp |
diff --git a/gdb/testsuite/gdb.base/structs3.exp b/gdb/testsuite/gdb.base/structs3.exp |
index 60a7ca6549d1b3551180400fc36b65c57a929dfc..251c9b7e0fe9600dd5ddf5cd3d4a335bf7b54d20 100644 |
--- a/gdb/testsuite/gdb.base/structs3.exp |
+++ b/gdb/testsuite/gdb.base/structs3.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2008-2012 Free Software Foundation, Inc. |
+# Copyright 2008-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 |
@@ -15,14 +15,17 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-set testfile "structs3" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
if { [prepare_for_testing structs3.exp "structs3" "" {debug}] } { |
return -1 |
} |
+if ![runto_main] { |
+ untested "could not run to main" |
+ return -1 |
+} |
+ |
set vhn "\\$\[0-9\]+" |
# Check the real contents. |