[gdb/testsuite] Fix gdb.base/include-main.exp with -readnow
authorTom de Vries <tdevries@suse.de>
Thu, 9 Dec 2021 10:15:34 +0000 (11:15 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 9 Dec 2021 10:15:34 +0000 (11:15 +0100)
commitfb44b07969b510488a5bd76759b7594445d37ab4
tree2861e1ede85ddb20f5094ad673cd88f27f6f40f5
parentde3a913df6e0af6d6d88ecd308407971a44eae9e
[gdb/testsuite] Fix gdb.base/include-main.exp with -readnow

With test-case gdb.base/include-main.exp and target board readnow, I run into:
...
FAIL: gdb.base/include-main.exp: maint info symtab
...

The corresponding check in gdb.base/include-main.exp:
...
gdb_test_no_output "maint info symtab"
...
checks that no CU was expanded, while -readnow ensures that all CUs are
expanded.

Fix this by skipping the check with -readnow.

Tested on x86_64-linux, with native and target board readnow.
gdb/testsuite/gdb.base/include-main.exp