diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-23 14:54:28 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-23 14:54:28 +0100 |
commit | 91ffa03af1cc32515190c3b52d7b964f5abead5f (patch) | |
tree | 53efc0d0fece7a2977d59b2d1087e59286dfc066 /gdb/solib.h | |
parent | 5834f36d93cabf1a8bcc7dd7654141aed3d296bc (diff) | |
download | gdb-91ffa03af1cc32515190c3b52d7b964f5abead5f.zip gdb-91ffa03af1cc32515190c3b52d7b964f5abead5f.tar.gz gdb-91ffa03af1cc32515190c3b52d7b964f5abead5f.tar.bz2 |
[gdb/testsuite] Use gdb_remote_download in allow_opencl_tests
Simon reported that doing:
...
$ while make check-parallel TESTS='gdb.opencl/*.exp' -j 100; do true; done
...
could run into:
...
ERROR: remote_download to target of \
/data/vries/gdb/src/gdb/testsuite/lib/opencl_kernel.cl to opencl_kernel.cl: \
cp: cannot create regular file 'opencl_kernel.cl': File exists
...
Fix this by using gdb_remote_download (instead of plain remote_download) in
allow_opencl_test, which takes care of:
- downloading to a location which is safe for parallel testing, by
using standard_output_file, and
- cleaning up the downloaded file, meaning we can remove the corresponding
"remote_file target delete ${clprogram}" lines in allow_opencl_test.
Tested on x86_64-linux.
Reported-by: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/solib.h')
0 files changed, 0 insertions, 0 deletions