aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-02-15 11:46:10 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-02-15 11:46:10 -0500
commitaa4803559b046ab4691965f8a4ceed1037b37629 (patch)
tree8464e78fc47a3ab618502e65be3ed894bf7d1020 /gdb/testsuite/lib
parent6439ea1a8827247110cb50f4b4fc4ca489af6578 (diff)
downloadgdb-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/lib')
-rw-r--r--gdb/testsuite/lib/opencl.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/opencl.exp b/gdb/testsuite/lib/opencl.exp
index 11f3194..2feed8b 100644
--- a/gdb/testsuite/lib/opencl.exp
+++ b/gdb/testsuite/lib/opencl.exp
@@ -21,7 +21,7 @@
proc gdb_compile_opencl_hostapp {clsource executable options} {
global srcdir objdir subdir
set src "${srcdir}/lib/cl_util.c ${srcdir}/lib/opencl_hostapp.c"
- set binfile ${objdir}/${subdir}/${executable}
+ set binfile [standard_output_file ${executable}]
set compile_flags [concat additional_flags=-I${srcdir}/lib/ additional_flags=-DCL_SOURCE=$clsource]
set options_opencl [concat {debug} $compile_flags $options [list libs=-lOpenCL]]
return [gdb_compile ${src} ${binfile} "executable" ${options_opencl}]