]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Handle maint set dwarf synchronous off default
authorTom de Vries <tdevries@suse.de>
Tue, 22 Oct 2024 07:23:26 +0000 (09:23 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 22 Oct 2024 07:23:26 +0000 (09:23 +0200)
commita03c03f84ac331a1ae03fbf1d7e53001935e45be
tree5eada7be2ce872ca2ff32531ed66d4c8d9c4fcf6
parent485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9
[gdb/testsuite] Handle maint set dwarf synchronous off default

I ran the testsuite with a patch setting dwarf_synchronous to false by
default, and ran into FAILs in test-cases gdb.dwarf2/dw2-inter-cu-error.exp
and gdb.dwarf2/dw2-inter-cu-error-2.exp, because the expected DWARF errors did
not show up as a result of the file command.

Fix this by forcing "maint set dwarf synchronous on".

Add the same in gdb.base/index-cache.exp, where this is also required.

Tested on aarch64-linux.
gdb/testsuite/gdb.base/index-cache.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp