1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

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.
This commit is contained in:
Stefan Liebler
2021-03-11 10:45:15 +01:00
parent d891f55562
commit e91f44089c

View File

@@ -72,7 +72,8 @@ try:
# The gdb version string is "GNU gdb <PKGVERSION><version>", where # The gdb version string is "GNU gdb <PKGVERSION><version>", where
# PKGVERSION can be any text. We assume that there'll always be a space # 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. # 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: if not version_match:
print('The gdb version string (gdb -v) is incorrectly formatted.') print('The gdb version string (gdb -v) is incorrectly formatted.')