Index: gdb/testsuite/gdb.base/dmsym.exp |
diff --git a/gdb/testsuite/gdb.base/dmsym.exp b/gdb/testsuite/gdb.base/dmsym.exp |
index 7472d1b615b64d53e110f72cb5c19fe4f53b15f0..822eed737404ead517cba0a7116bae5e2ce2c6ac 100644 |
--- a/gdb/testsuite/gdb.base/dmsym.exp |
+++ b/gdb/testsuite/gdb.base/dmsym.exp |
@@ -1,4 +1,4 @@ |
-# Copyright (C) 2011-2012 Free Software Foundation, Inc. |
+# Copyright (C) 2011-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 |
@@ -21,16 +21,18 @@ set testfile dmsym_main |
# This is why we use gdb_compile instead of relying on the usual |
# call to prepare_for_testing. |
+set dmsym_o [standard_output_file dmsym.o] |
+ |
if {[gdb_compile "${srcdir}/${subdir}/dmsym.c" \ |
- ${objdir}/${subdir}/dmsym.o \ |
+ $dmsym_o \ |
object {}] != ""} { |
untested dmsym.exp |
return -1 |
} |
if {[gdb_compile \ |
- [list ${srcdir}/${subdir}/dmsym_main.c ${objdir}/${subdir}/dmsym.o] \ |
- ${objdir}/${subdir}/${testfile} \ |
+ [list ${srcdir}/${subdir}/dmsym_main.c $dmsym_o] \ |
+ [standard_output_file ${testfile}] \ |
executable {debug}] != ""} { |
untested dmsym.exp |
return -1 |