]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix clean_restart in gdb.opencl/callfuncs.exp
authorTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 12:18:35 +0000 (14:18 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 12:18:35 +0000 (14:18 +0200)
commitaebc33d411dcbf876c1fa3b8af02361dd39de183
tree264080f7c9fd4b20504d071485f84393a0f914e4
parent7a573cfa16b991f66aa9cbd2301952089b1243d4
[gdb/testsuite] Fix clean_restart in gdb.opencl/callfuncs.exp

In test-case gdb.opencl/callfuncs.exp I noticed:
...
clean_restart [standard_testfile $testfile]
...

This doesn't have the desired effect of starting gdb with $testfile because
standard_testfile doesn't return anything.

Fix this by using "clean_restart $testfile".

While we're at it:
- move standard_testfile to the start of the file
- drop the redundant 'set testfile "callfuncs"'
- use standard_testfile .cl to properly define $srcfile
- use $srcfile instead of $testfile.cl

Tested on x86_64-linux, using the demonstrator patch in PR testsuite/33363.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33363
gdb/testsuite/gdb.opencl/callfuncs.exp