aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2021-03-11 10:45:15 +0100
committerStefan Liebler <stli@linux.ibm.com>2021-03-11 14:08:07 +0100
commite91f44089c3203f647d6feadb958ff5f388427bd (patch)
tree53b4bc32b0040173fa9bbeb03a81f09dd405d209 /scripts
parentd891f55562ca425457cb351c82312db53935b1b3 (diff)
downloadglibc-e91f44089c3203f647d6feadb958ff5f388427bd.zip
glibc-e91f44089c3203f647d6feadb958ff5f388427bd.tar.gz
glibc-e91f44089c3203f647d6feadb958ff5f388427bd.tar.bz2
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test_printers_common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test_printers_common.py b/scripts/test_printers_common.py
index 0d51589..34a3df6 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.')