Index: gdb/testsuite/gdb.fortran/library-module.exp |
diff --git a/gdb/testsuite/gdb.fortran/library-module.exp b/gdb/testsuite/gdb.fortran/library-module.exp |
index 7afe79959d29c1c8f8a95a496e14105dda49a2a6..9db5ab1ea216d900804ccabcde1e0e913e3beeaf 100644 |
--- a/gdb/testsuite/gdb.fortran/library-module.exp |
+++ b/gdb/testsuite/gdb.fortran/library-module.exp |
@@ -13,19 +13,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 "library-module" |
-set srcfile ${testfile}-main.f90 |
+standard_testfile library-module-main.f90 |
set srclibfile ${testfile}-lib.f90 |
-set libfile ${testfile}-lib.so |
-set binfile ${testfile} |
+set libfile [standard_output_file ${testfile}-lib.so] |
# Required for -fPIC by gdb_compile_shlib. |
-if [get_compiler_info not-used] { |
+if [get_compiler_info] { |
warning "Could not get compiler info" |
return -1 |
} |
-if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $objdir/$subdir/$libfile {debug f90}] != "" } { |
+if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90}] != "" } { |
untested "Couldn't compile ${srclibfile}" |
return -1 |
} |
@@ -34,14 +32,14 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $objdir/$subdir/$li |
# just for the linking phase (and not the source compilation phase). And any |
# warnings on ignored $libfile abort the process. |
-if { [gdb_compile $srcdir/$subdir/$srcfile $objdir/$subdir/$binfile executable [list debug f90 shlib=$objdir/$subdir/$libfile]] != "" } { |
+if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug f90 shlib=$libfile]] != "" } { |
untested "Couldn't compile ${srcfile}" |
return -1 |
} |
-clean_restart $binfile |
+clean_restart $testfile |
-gdb_load_shlibs $objdir/$subdir/$libfile |
+gdb_load_shlibs $libfile |
if ![runto MAIN__] then { |
perror "couldn't run to breakpoint MAIN__" |