[gdb/testsuite] Require debug info for gdb.tui/tui-layout-asm-short-prog.exp
authorTom de Vries <tdevries@suse.de>
Thu, 8 Dec 2022 14:35:47 +0000 (15:35 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 8 Dec 2022 14:35:47 +0000 (15:35 +0100)
commit2d77a94ff17a81260b80997db476f87cba5f4b11
treea52f197b6991cb77b241cad126244e576d673f34
parentc968f038619c319775d41b228c037e4c05ef97a3
[gdb/testsuite] Require debug info for gdb.tui/tui-layout-asm-short-prog.exp

When running test-case gdb.tui/tui-layout-asm-short-prog.exp on SLE-12-SP3
aarch64, I run into:
...
FAIL: gdb.tui/tui-layout-asm-short-prog.exp: check asm box contents
FAIL: gdb.tui/tui-layout-asm-short-prog.exp: check asm box contents again
...
due to:
...
(gdb) file tui-layout-asm-short-prog^M
Reading symbols from tui-layout-asm-short-prog...^M
(No debugging symbols found in tui-layout-asm-short-prog)^M
...

I managed to reproduce the same behaviour on openSUSE Leap 15.4 x86_64, by
removing the debug option.

Fix this by making the test-case unsupported if no debug info is found.

Tested on x86_64-linux.
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp