Blame SOURCES/00196-test-gdb-match-addr-before-builtin.patch

8dc7a2
Subject: python3.test gdb match addr before builtin
8dc7a2
From: Michel Normand <normand@linux.vnet.ibm.com>
8dc7a2
8dc7a2
For ppc64le archi and python3... and gdb... versions
8dc7a2
the test_gdb.py need a change of re.match to handle address before the builtin_id word.
8dc7a2
Of course there is no error if this substring is not present.
8dc7a2
===
8dc7a2
...
8dc7a2
#0  0x00003fffb7dd0898 in builtin_id (self=<module at remote 0x3fffb7901440>, v=<unknown at remote 0x3fffb7f68910>) at /builddir/build/BUILD/Python-3.3.2/Python/bltinmodule.c:966
8dc7a2
....xxxxxxxxxxxxxxxxxxxxxx <= added regexp
8dc7a2
===
8dc7a2
8dc7a2
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
8dc7a2
---
8dc7a2
 Lib/test/test_gdb.py |    2 +-
8dc7a2
 1 file changed, 1 insertion(+), 1 deletion(-)
8dc7a2
8dc7a2
Index: Python-3.3.2/Lib/test/test_gdb.py
8dc7a2
===================================================================
8dc7a2
--- Python-3.3.2.orig/Lib/test/test_gdb.py
8dc7a2
+++ Python-3.3.2/Lib/test/test_gdb.py
8dc7a2
@@ -230,7 +230,7 @@ class DebuggerTests(unittest.TestCase):
8dc7a2
         # gdb can insert additional '\n' and space characters in various places
8dc7a2
         # in its output, depending on the width of the terminal it's connected
8dc7a2
         # to (using its "wrap_here" function)
8dc7a2
-        m = re.match('.*#0\s+builtin_id\s+\(self\=.*,\s+v=\s*(.*?)\)\s+at\s+\S*Python/bltinmodule.c.*',
8dc7a2
+        m = re.match('.*#0\s+(?: 0x[0-9a-f]+\s+in\s+)?builtin_id\s+\(self\=.*,\s+v=\s*(.*?)\)\s+at\s+\S*Python/bltinmodule.c.*',
8dc7a2
                      gdb_output, re.DOTALL)
8dc7a2
         if not m:
8dc7a2
             self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))