]> sourceware.org Git - glibc.git/commitdiff
Allow gdb version 10 in pretty printer tests.
authorStefan Liebler <stli@linux.ibm.com>
Thu, 11 Mar 2021 09:45:15 +0000 (10:45 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Thu, 11 Mar 2021 13:08:07 +0000 (14:08 +0100)
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.

scripts/test_printers_common.py

index 0d515891f6ed185c8b3c2e6bbfbe6ed258479e6e..34a3df6e6bd8b36371423ecc0ee44a2657f46923 100644 (file)
@@ -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.')
This page took 0.040929 seconds and 5 git commands to generate.