make gdb.asm parallel-safe
authorTom Tromey <tromey@redhat.com>
Fri, 23 Aug 2013 20:16:58 +0000 (14:16 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 4 Nov 2013 18:02:09 +0000 (11:02 -0700)
This fixes gdb.asm to be parallel-safe.

2013-11-04  Tom Tromey  <tromey@redhat.com>

* gdb.asm/asm-source.exp: Use standard_output_file.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp

index d21d7c2ef54703c72a4c9b506c2e75bd3d11d339..d058ed0b59e16174c93ddba173302fb3686729c1 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-04  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.asm/asm-source.exp: Use standard_output_file.
+
 2013-11-04  Tom Tromey  <tromey@redhat.com>
 
        * gdb.server/file-transfer.exp: Use standard_output_file.
index 5168452d64221e0b0904e16b33577f88599207d4..511bd21520f2e486635d27ac3a9e5252cb4b08e0 100644 (file)
@@ -200,10 +200,13 @@ if [board_info $dest exists multilib_flags] {
 
 standard_testfile asmsrc1.s asmsrc2.s
 
-remote_exec build "rm -f ${subdir}/arch.inc"
-remote_download host ${srcdir}/${subdir}/${asm-arch}.inc ${subdir}/arch.inc
-remote_exec build "rm -f ${subdir}/note.inc"
-remote_download host ${srcdir}/${subdir}/${asm-note}.inc ${subdir}/note.inc
+set arch_inc [standard_output_file arch.inc]
+set note_inc [standard_output_file note.inc]
+
+remote_exec build "rm -f $arch_inc"
+remote_download host ${srcdir}/${subdir}/${asm-arch}.inc $arch_inc
+remote_exec build "rm -f $note_inc"
+remote_download host ${srcdir}/${subdir}/${asm-note}.inc $note_inc
 
 if { [string equal ${asm-flags} ""] } {
     set asm-flags "-I${srcdir}/${subdir} $obj_include"
@@ -467,5 +470,5 @@ test_dis "disassem &staticvar, &staticvar+1" "staticvar"
 gdb_test "disassem foostatic" ".*<\\+0>:.*End of assembler dump." \
        "look at static function"
 
-remote_exec build "rm -f ${subdir}/arch.inc"
-remote_exec build "rm -f ${subdir}/note.inc"
+remote_exec build "rm -f $arch_inc"
+remote_exec build "rm -f $note_inc"