]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
[gdb/testsuite] Fix gdb.linespec/explicit.exp FAIL with glibc debug info
authorTom de Vries <tdevries@suse.de>
Thu, 12 Mar 2020 10:34:45 +0000 (11:34 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 12 Mar 2020 10:34:45 +0000 (11:34 +0100)
commit9a2de3fc7f7c40da6e8d5553c29e6cb8a2430dc8
tree158820210b67df56a6754567b75cf4cf16d90656
parent3217502e1ba7409676e192100a0147a49dd5ae7a
[gdb/testsuite] Fix gdb.linespec/explicit.exp FAIL with glibc debug info

When running test-case gdb.linespec/explicit.exp with GLIBC debuginfo
installed, I run into:
...
(gdb) break -source exp^GlFAIL: gdb.linespec/explicit.exp: complete \
  non-unique file name (timeout)
...

The regexp that times out is:
...
           -re "break -source exp\\\x07licit" {
...
and the reason it times out is that gdb only outputs an "l" after the tab, while
the regexp expect a futher "icit".

This is a regression since commit 507dd60e28 "[gdb/testsuite, 1/2] Fix
gdb.linespec/explicit.exp with check-read1", where I merged the matching for
the two cases where GLIBC debuginfo is either installed or not, as it turns
out incorrectly, presumably because even though I tested with GLIBC debuginfo
info installed and deinstalled, that didn't make a difference because I didn't
use configure flag --with-separate-debug-dir=/usr/lib/debug.

Fix this by not explictly matching the "icit" part.

Tested on x86_64-linux, with and without GLIBC debuginfo installed, both with
make targets check and check-read1.

gdb/testsuite/ChangeLog:

2020-03-12  Tom de Vries  <tdevries@suse.de>

* gdb.linespec/explicit.exp: Fix "complete non-unique file name" test
in presence of GLIBC debuginfo.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.linespec/explicit.exp