diff options
author | Tom de Vries <tdevries@suse.de> | 2023-02-08 11:48:53 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-02-08 11:48:53 +0100 |
commit | 0ab9328277ce12014ce05ff139eba7a6230516fd (patch) | |
tree | f1d94b8217da08500233db72d5e64c35789770bc /gdb/guile/scm-lazy-string.c | |
parent | e02841b095a7797aaae1b064fb4b7acc2eb8d900 (diff) | |
download | gdb-0ab9328277ce12014ce05ff139eba7a6230516fd.zip gdb-0ab9328277ce12014ce05ff139eba7a6230516fd.tar.gz gdb-0ab9328277ce12014ce05ff139eba7a6230516fd.tar.bz2 |
[gdb/testsuite] Use maint ignore-probes in gdb.base/solib-corrupted.exp
Test-case gdb.base/solib-corrupted.exp only works for a glibc without probes
interface, otherwise we run into:
...
XFAIL: gdb.base/solib-corrupted.exp: info probes
UNTESTED: gdb.base/solib-corrupted.exp: GDB is using probes
...
Fix this by using maint ignore-probes to simulate the absence of the relevant
probes.
Also, it requires glibc debuginfo, and if not present, it produces an XFAIL:
...
XFAIL: gdb.base/solib-corrupted.exp: make solibs looping
UNTESTED: gdb.base/solib-corrupted.exp: no _r_debug symbol has been found
...
This is incorrect, because an XFAIL indicates a known problem in the
environment. In this case, there is no problem: the environment is
functioning as expected when glibc debuginfo is not installed.
Fix this by using UNSUPPORTED instead, and make the message less cryptic:
...
UNSUPPORTED: gdb.base/solib-corrupted.exp: make solibs looping \
(glibc debuginfo required)
...
Finally, with glibc debuginfo present, we run into:
...
(gdb) PASS: gdb.base/solib-corrupted.exp: make solibs looping
info sharedlibrary^M
warning: Corrupted shared library list: 0x7ffff7ffe750 != 0x0^M
From To Syms Read Shared Object Library^M
0x00007ffff7dd4170 0x00007ffff7df4090 Yes /lib64/ld-linux-x86-64.so.2^M
(gdb) FAIL: gdb.base/solib-corrupted.exp: corrupted list \
(shared library list corrupted)
...
due to commit 44288716537 ("gdb, testsuite: extend gdb_test_multiple checks").
Fix this by rewriting into gdb_test_multiple and using -early.
Tested on x86_64-linux, with and without glibc debuginfo installed.
Diffstat (limited to 'gdb/guile/scm-lazy-string.c')
0 files changed, 0 insertions, 0 deletions