]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Check spawn result in gdb.tui/tuiterm-2.exp
authorTom de Vries <tdevries@suse.de>
Fri, 26 Sep 2025 23:54:18 +0000 (01:54 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 26 Sep 2025 23:54:18 +0000 (01:54 +0200)
commit71725dd5d82266d9214a5d359617529bd0b826d2
tree6acca0e1d731712e14ab9a55c9ca466cc7496435
parent756236557ba0397f2efe8d533df4ab04d939b025
[gdb/testsuite] Check spawn result in gdb.tui/tuiterm-2.exp

Simon reported [1] that test-case gdb.tui/tuiterm-2.exp fails with an ERROR
if tclsh is missing.

Fix this by checking that spawning the gdb.tcl script succeeds.

While we're at it, also add some missing cleanup related to the spawned process.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
[1] https://sourceware.org/pipermail/gdb-patches/2025-September/220736.html
gdb/testsuite/gdb.tui/tuiterm-2.exp