diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/boards/gdbserver-base.exp | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a1a4c04..ef3e66d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-04-13 Simon Marchi <simon.marchi@ericsson.com> + + * boards/gdbserver-base.exp (${board}_download): Copy source file to + standard output directory. + 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com> * gdb.trace/trace-condition.exp (foreach): Fix emit_sub testcase. diff --git a/gdb/testsuite/boards/gdbserver-base.exp b/gdb/testsuite/boards/gdbserver-base.exp index b686204..02a9244 100644 --- a/gdb/testsuite/boards/gdbserver-base.exp +++ b/gdb/testsuite/boards/gdbserver-base.exp @@ -41,7 +41,14 @@ proc ${board}_file { dest op args } { } proc ${board}_download { board host dest } { - return $host + # We pass DEST in standard_output_file, regardless of whether it is absolute + # or relative, because we don't want the tests to be able to write outside + # their standard output directory. + set dest [standard_output_file $dest] + + file copy -force $host $dest + + return $dest } proc ${board}_upload {dest srcfile args} { |