Index: gdb/testsuite/gdb.base/fixsection.exp |
diff --git a/gdb/testsuite/gdb.base/fixsection.exp b/gdb/testsuite/gdb.base/fixsection.exp |
index ad991a2c00dfa74e08028dc82b5ccf1742986818..74cd196c3dd98b97427e476adaa1051173b9292e 100644 |
--- a/gdb/testsuite/gdb.base/fixsection.exp |
+++ b/gdb/testsuite/gdb.base/fixsection.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2008-2012 Free Software Foundation, Inc. |
+# Copyright (C) 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 |
@@ -18,13 +18,11 @@ if {[skip_shlib_tests]} { |
return 0 |
} |
-set testfile "fixsection" |
-set srcfile ${srcdir}/${subdir}/${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
set libfile "fixsectshr" |
set libsrc ${srcdir}/${subdir}/${libfile}.c |
-set lib_sl ${objdir}/${subdir}/${libfile}.sl |
+set lib_sl [standard_output_file ${libfile}.sl] |
set lib_opts [list debug nowarnings] |
set exec_opts [list debug nowarnings shlib=$lib_sl] |
@@ -34,7 +32,8 @@ if [get_compiler_info] { |
} |
if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != "" |
- || [gdb_compile $srcfile $binfile executable $exec_opts] != ""} { |
+ || [gdb_compile $srcdir/$subdir/$srcfile $binfile \ |
+ executable $exec_opts] != ""} { |
untested "Could not compile either $libsrc or $srcfile." |
return -1 |
} |
@@ -49,7 +48,7 @@ gdb_load_shlibs ${lib_sl} |
if ![runto_main] then { |
fail "Can't run to main" |
- return 1; |
+ return 1 |
} |
# |