public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: avoid creating temp file in gdb/testsuite/ directory
@ 2022-12-13 15:39 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-12-13 15:39 UTC (permalink / raw)
  To: gdb-cvs

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

commit dc3fb44540b586c02ec2f841e106a8d2cc2a422d
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Tue Dec 13 15:37:17 2022 +0000

    gdb/testsuite: avoid creating temp file in gdb/testsuite/ directory
    
    After this commit:
    
      commit 33c1395cf5e9deec7733691ba32c450e5c27f757
      Date:   Fri Nov 11 15:26:46 2022 +0000
    
          gdb/testsuite: fix gdb.trace/unavailable-dwarf-piece.exp with Clang
    
    The gdb.trace/unavailable-dwarf-piece.exp test script was creating a
    temporary file in the build/gdb/testsuite/ directory, instead of in
    the expected place in the outputs directory.
    
    Fix this by adding a call to standard_output_file.

Diff:
---
 gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
index 13c6f38737c..d73b9f1e33f 100644
--- a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
+++ b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
@@ -22,7 +22,7 @@ if {![dwarf2_support]} {
 
 standard_testfile .c -dbg.S
 
-set asm_file $srcfile2
+set asm_file [standard_output_file $srcfile2]
 set opts {}
 
 if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-13 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 15:39 [binutils-gdb] gdb/testsuite: avoid creating temp file in gdb/testsuite/ directory Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).