diff options
author | Tom Tromey <tromey@redhat.com> | 2013-08-23 12:18:01 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-11-04 11:02:07 -0700 |
commit | 08b3fe691141c34a81531906ef9865fe8d25724c (patch) | |
tree | 255570da80ace50f54a64c63f6d963ed8ad11ac3 /gdb/testsuite/gdb.base/prelink.exp | |
parent | 32cfb09dfc283da30663f07b0e71726bcb3e093a (diff) | |
download | gdb-08b3fe691141c34a81531906ef9865fe8d25724c.zip gdb-08b3fe691141c34a81531906ef9865fe8d25724c.tar.gz gdb-08b3fe691141c34a81531906ef9865fe8d25724c.tar.bz2 |
simple changes in gdb.base
This makes more changes in gdb.base to make it parallel-safe. I think
the changes in this particular patch are relatively straightforward,
so I've grouped them all together.
2013-11-04 Tom Tromey <tromey@redhat.com>
* gdb.base/advance.exp: Use standard_testfile and
prepare_for_testing.
* gdb.base/bigcore.exp: Use standard_output_file. "cd" to
appropriate directory when local.
* gdb.base/dump.exp: Use standard_output_file. Update all
"dump" and "restore" filenames.
* gdb.base/interact.exp: Use standard_output_file.
* gdb.base/jit-so.exp: Don't download file when local.
* gdb.base/jit.exp (compile_jit_test): Don't download file
when local.
* gdb.base/list.exp: Use gdb_remote_download.
* gdb.base/maint.exp: Use standard_output_file.
* gdb.base/prelink.exp: Use standard_output_file.
* gdb.base/save-bp.exp: Use standard_output_file.
* gdb.base/sepdebug.exp: Use standard_testfile,
standard_output_file.
(test_different_dir): Don't declare objdir.
* gdb.base/solib-search.exp: Use standard_output_file.
* gdb.base/step-line.exp: Use gdb_remote_download.
* gdb.base/trace-commands.exp: Use standard_output_file.
Diffstat (limited to 'gdb/testsuite/gdb.base/prelink.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/prelink.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp index ac70726..0043e3a 100644 --- a/gdb/testsuite/gdb.base/prelink.exp +++ b/gdb/testsuite/gdb.base/prelink.exp @@ -36,7 +36,7 @@ load_lib prelink-support.exp set testfile "prelink" set libsrcfile ${testfile}-lib.c -set libfile ${objdir}/${subdir}/${testfile}.so +set libfile [standard_output_file ${testfile}.so] # Use -soname so that the new library gets copied by build_executable_own_libs. @@ -47,7 +47,7 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${libsrcfile}" "${libfile}" [list d set srcfile ${testfile}.c set executable ${testfile}t -set binfile ${objdir}/${subdir}/${executable} +set binfile [standard_output_file ${executable}] set prelink_args [build_executable_own_libs ${testfile}.exp $executable $srcfile [list debug "ldflags=-Wl,${libfile},-rpath,[file dirname ${libfile}]"]] if {$prelink_args == ""} { return -1 @@ -66,13 +66,13 @@ if ![prelink_yes $prelink_args] { } set found 0 -set coredir "${objdir}/${subdir}/coredir.[getpid]" +set coredir "[standard_output_file coredir.[getpid]]" file mkdir $coredir catch "system \"(cd ${coredir}; ulimit -c unlimited; ${binfile}; true) >/dev/null 2>&1\"" foreach i "${coredir}/core ${coredir}/core.coremaker.c ${binfile}.core" { if [remote_file build exists $i] { - remote_exec build "mv $i ${objdir}/${subdir}/prelink.core" + remote_exec build "mv $i [standard_output_file prelink.core]" set found 1 } } @@ -81,7 +81,7 @@ if { $found == 0 } { set names [glob -nocomplain -directory $coredir core.*] if {[llength $names] == 1} { set corefile [file join $coredir [lindex $names 0]] - remote_exec build "mv $corefile ${objdir}/${subdir}/prelink.core" + remote_exec build "mv $corefile [standard_output_file prelink.core]" set found 1 } } @@ -107,6 +107,6 @@ clean_restart $executable # Print the "adjusting expectations" message. gdb_test_no_output "set verbose on" -gdb_test "core-file $objdir/$subdir/prelink.core" "Using PIC \\(Position Independent Code\\) prelink displacement 0x\[^0\]\[0-9a-f\]* for \[^\r\n\]*[file tail ${libfile}].*" "seen displacement message" +gdb_test "core-file [standard_output_file prelink.core]" "Using PIC \\(Position Independent Code\\) prelink displacement 0x\[^0\]\[0-9a-f\]* for \[^\r\n\]*[file tail ${libfile}].*" "seen displacement message" gdb_test "p &bssvar == bssvarp" " = 1" ".dynbss vs. .bss address shift" |