public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Allow gdb version 10 in pretty printer tests.
@ 2021-03-11 13:09 Stefan Liebler
0 siblings, 0 replies; only message in thread
From: Stefan Liebler @ 2021-03-11 13:09 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e91f44089c3203f647d6feadb958ff5f388427bd
commit e91f44089c3203f647d6feadb958ff5f388427bd
Author: Stefan Liebler <stli@linux.ibm.com>
Date: Thu Mar 11 10:45:15 2021 +0100
Allow gdb version 10 in pretty printer tests.
With gdb 10, the pretty printer tests are UNSUPPORTED::
The gdb version string (gdb -v) is incorrectly formatted.
This is observable in:
nptl/test-cond-printers, nptl/test-condattr-printers,
nptl/test-mutex-printers, nptl/test-mutexattr-printers,
nptl/test-rwlock-printers, nptl/test-rwlockattr-printers
After updating the regexp and building with debug-info,
all those tests are passing.
Diff:
---
scripts/test_printers_common.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py
index 0d515891f6..34a3df6e6b 100644
--- a/scripts/test_printers_common.py
+++ b/scripts/test_printers_common.py
@@ -72,7 +72,8 @@ try:
# The gdb version string is "GNU gdb <PKGVERSION><version>", where
# PKGVERSION can be any text. We assume that there'll always be a space
# between PKGVERSION and the version number for the sake of the regexp.
- version_match = re.search(r'GNU gdb .* ([1-9]+)\.([0-9]+)', gdb_version_out)
+ version_match = re.search(r'GNU gdb .* ([1-9][0-9]*)\.([0-9]+)',
+ gdb_version_out)
if not version_match:
print('The gdb version string (gdb -v) is incorrectly formatted.')
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-11 13:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 13:09 [glibc] Allow gdb version 10 in pretty printer tests Stefan Liebler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).