diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2016-02-15 11:46:10 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2016-02-15 11:46:10 -0500 |
commit | aa4803559b046ab4691965f8a4ceed1037b37629 (patch) | |
tree | 8464e78fc47a3ab618502e65be3ed894bf7d1020 /gdb/testsuite/gdb.base | |
parent | 6439ea1a8827247110cb50f4b4fc4ca489af6578 (diff) | |
download | gdb-aa4803559b046ab4691965f8a4ceed1037b37629.zip gdb-aa4803559b046ab4691965f8a4ceed1037b37629.tar.gz gdb-aa4803559b046ab4691965f8a4ceed1037b37629.tar.bz2 |
testsuite: Fix some tests that write outside of the standard output directory
gdb/testsuite/ChangeLog:
* gdb.base/wrong_frame_bt_full.exp: Use standard_output_file to
define object file path.
* gdb.btrace/gcore.exp: Use standard_output_file to define core
file path.
* lib/opencl.exp (gdb_compile_opencl_hostapp): Use
standard_output_file to define binfile.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/wrong_frame_bt_full.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp index a763470..cc4d879 100644 --- a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp +++ b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp @@ -23,16 +23,17 @@ set main_testfile wrong_frame_bt_full-main set opaque_testfile wrong_frame_bt_full-opaque +set opaque_objfile [standard_output_file "$opaque_testfile.o"] if {[gdb_compile "${srcdir}/${subdir}/$opaque_testfile.c" \ - $opaque_testfile.o \ + $opaque_objfile \ object {}] != ""} { untested "failed to compile $opaque_testfile.c" return -1 } if {[gdb_compile \ - [list ${srcdir}/${subdir}/$main_testfile.c $opaque_testfile.o] \ + [list ${srcdir}/${subdir}/$main_testfile.c $opaque_objfile] \ [standard_output_file ${main_testfile}] \ executable {debug}] != ""} { untested "failed to build $main_testfile" |