[gdb/testsuite] Improve gdb.arch/arm-pthread_cond_timedwait-bt.exp
authorTom de Vries <tdevries@suse.de>
Sat, 22 Jul 2023 09:00:25 +0000 (11:00 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 22 Jul 2023 09:00:25 +0000 (11:00 +0200)
commitb40b1e4f9a3c95588a2f5773bbd825956c832b6b
tree6811e71f0b0f44b3cd38092440218ab1a5a547e9
parent09075d5d4a2b6dbbc3ca20e2b963799b4c5d638d
[gdb/testsuite] Improve gdb.arch/arm-pthread_cond_timedwait-bt.exp

I noticed in test-case gdb.arch/arm-pthread_cond_timedwait-bt.exp that
prepare_for_testing is used, followed by a clean_restart.

This calls clean_restart twice in a row.

Fix this by using build_executable instead.

Also, I noticed that the test-case requires an SVC instruction, so add a
require to limit the test-case to supported architectures.

While we're at it, run M-x indent-region in emacs to fix indentation.

Tested on x86_64-linux.
gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp