diff options
author | Tom de Vries <tdevries@suse.de> | 2022-12-08 15:35:47 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-12-08 15:35:47 +0100 |
commit | 2d77a94ff17a81260b80997db476f87cba5f4b11 (patch) | |
tree | a52f197b6991cb77b241cad126244e576d673f34 /gdb/testsuite | |
parent | c968f038619c319775d41b228c037e4c05ef97a3 (diff) | |
download | gdb-2d77a94ff17a81260b80997db476f87cba5f4b11.zip gdb-2d77a94ff17a81260b80997db476f87cba5f4b11.tar.gz gdb-2d77a94ff17a81260b80997db476f87cba5f4b11.tar.bz2 |
[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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp index a6be799..bda1c02 100644 --- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp +++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp @@ -32,6 +32,11 @@ if {![Term::prepare_for_tui]} { return } +if { $gdb_file_cmd_debug_info == "nodebug" } { + unsupported "no debug info" + return +} + # This puts us into TUI mode, and should display the ASM window. Term::command_no_prompt_prefix "layout asm" Term::check_box_contents "check asm box contents" 0 0 80 15 "<_start>" |