]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Use with_cwd in gdb.src/pre-commit.exp
authorTom de Vries <tdevries@suse.de>
Mon, 20 Oct 2025 09:16:43 +0000 (11:16 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 20 Oct 2025 09:16:43 +0000 (11:16 +0200)
commita9d169b98c5e6b3908fed307d0ba647499b68cdf
treea11b55e886334001348b10814ec7db4f54f56b9f
parent76d2c7d416e4dc7da22a999f9b027701a88b7801
[gdb/testsuite] Use with_cwd in gdb.src/pre-commit.exp

I ran the testsuite and ran into ERRORs in two test-cases,
gdb.trace/save-trace.exp and gdb.threads/tls-sepdebug.exp.

Recently added test-case gdb.src/pre-commit.exp changes the working directory,
and the change stays active in following test-cases, which was not the
intention.

Fix this using with_cwd.

Tested on x86_64-linux.
gdb/testsuite/gdb.src/pre-commit.exp