Index: gdb/testsuite/gdb.base/pointers.exp |
diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp |
index 5b1a0bf86d5f4ed91c06bdd601c20b187ca70f61..192b1393d0bd54136beceaed1b495c60fd39d9bd 100644 |
--- a/gdb/testsuite/gdb.base/pointers.exp |
+++ b/gdb/testsuite/gdb.base/pointers.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 1998-2000, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 1998-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 |
@@ -25,9 +25,7 @@ |
# test running programs |
# |
-set testfile "pointers" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } { |
untested pointers.exp |
@@ -35,13 +33,10 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb |
} |
if [get_compiler_info] { |
- return -1; |
+ return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
# |