Index: gdb/testsuite/gdb.base/bfp-test.exp |
diff --git a/gdb/testsuite/gdb.base/bfp-test.exp b/gdb/testsuite/gdb.base/bfp-test.exp |
index 26ac7ffa4d919bda3706236f51409ec739c84c86..42830c4f934519032d43d9db114eb368734f8a53 100644 |
--- a/gdb/testsuite/gdb.base/bfp-test.exp |
+++ b/gdb/testsuite/gdb.base/bfp-test.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2005, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2005-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,18 +16,14 @@ |
# This file is part of the gdb testsuite. It is intended to test that |
# gdb could correctly handle floating point constant with a suffix. |
-set testfile "bfp-test" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
+ |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested "Couldn't compile ${srcfile}" |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
if ![runto_main] then { |
perror "couldn't run to breakpoint" |