This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/gdb-7.12-branch] testsuite: solib-disc: Use `standard_output_file'


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8ff5432c0c9912efc43f92837243aecfcf1c1098

commit 8ff5432c0c9912efc43f92837243aecfcf1c1098
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Thu Oct 6 15:12:54 2016 +0100

    testsuite: solib-disc: Use `standard_output_file'
    
    Correct a commit 2151ccc56c74 ("Always organize test artifacts in a
    directory hierarchy") regression causing:
    
    Running .../gdb/testsuite/gdb.base/solib-disc.exp ...
    gdb compile failed, Assembler messages:
    Fatal error: can't create .../gdb/testsuite/gdb.base/so-disc-shr.c.o: No such file or directory
    
    by using `standard_output_file' to construct output file names
    throughout.
    
    	gdb/testsuite/
    	* gdb.base/solib-disc.exp: Use `standard_output_file'
    	throughout.
    (cherry picked from commit 7470adbb872d5363580eb5e0a8dbb231c286ee4c)

Diff:
---
 gdb/testsuite/ChangeLog               | 5 +++++
 gdb/testsuite/gdb.base/solib-disc.exp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 26c917b..caec82b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
+
+	* gdb.base/solib-disc.exp: Use `standard_output_file'
+	throughout.
+
 2016-10-06  Pedro Alves  <palves@redhat.com>
 
 	* gdb.base/jit-simple-dl.c: New file.
diff --git a/gdb/testsuite/gdb.base/solib-disc.exp b/gdb/testsuite/gdb.base/solib-disc.exp
index 66cf960..8b61c83 100644
--- a/gdb/testsuite/gdb.base/solib-disc.exp
+++ b/gdb/testsuite/gdb.base/solib-disc.exp
@@ -27,11 +27,11 @@ if { [info proc gdb_reconnect] == "" } {
 set testfile solib-disc
 set libfile so-disc-shr
 set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile [standard_output_file ${testfile}]
 
 set libsrc "${srcdir}/${subdir}/${libfile}.c"
 set libname "${libfile}.so"
-set libobj "${objdir}/${subdir}/${libname}"
+set libobj [standard_output_file ${libname}]
 set execsrc "${srcdir}/${subdir}/${srcfile}"
 set lib_dlopen [shlib_target_file ${libname}]
 set lib_syms [shlib_symbol_file ${libname}]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]