]> granicus.if.org Git - python/commitdiff
#17833: fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb...
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 6 May 2013 18:47:15 +0000 (14:47 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 6 May 2013 18:47:15 +0000 (14:47 -0400)
Misc/NEWS
Tools/gdb/libpython.py

index 39e580b20e66ef30226d4da8ee6b48a51f428a3b..e3b01e9a73b49850f1059c352efb05bc88e9ac7a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -168,6 +168,9 @@ IDLE
 Tests
 -----
 
+- Issue #17833: Fix test_gdb failures seen on machines where debug symbols
+  for glibc are available (seen on PPC64 Linux).
+
 - Issue #7855: Add tests for ctypes/winreg for issues found in IronPython.
   Initial patch by Dino Viehland.
 
index cab226e5d04b143173f9bdaa7c2a887141689bfa..84d4fa31c4969f7e839567cd812fb9ad17ce6888 100644 (file)
@@ -1460,7 +1460,7 @@ class Frame(object):
         # This assumes the _POSIX_THREADS version of Python/ceval_gil.h:
         name = self._gdbframe.name()
         if name:
-            return name.startswith('pthread_cond_timedwait')
+            return 'pthread_cond_timedwait' in name
 
     def is_gc_collect(self):
         '''Is this frame "collect" within the garbage-collector?'''