churchyard / rpms / python38

Forked from rpms/python38 5 years ago
Clone
c298168
--- Lib/test/test_gdb.py.old	2012-04-11 21:04:01.367073855 -0400
c298168
+++ Lib/test/test_gdb.py	2012-04-12 08:52:58.320288761 -0400
c298168
@@ -96,6 +96,15 @@ class DebuggerTests(unittest.TestCase):
3170c05
         # Generate a list of commands in gdb's language:
3170c05
         commands = ['set breakpoint pending yes',
3170c05
                     'break %s' % breakpoint,
3170c05
+
3170c05
+                    # GDB as of Fedora 17 onwards can distinguish between the
3170c05
+                    # value of a variable at entry vs current value:
3170c05
+                    #   http://sourceware.org/gdb/onlinedocs/gdb/Variables.html
3170c05
+                    # which leads to the selftests failing with errors like this:
3170c05
+                    #   AssertionError: 'v@entry=()' != '()'
3170c05
+                    # Disable this:
3170c05
+                    'set print entry-values no',
3170c05
+
3170c05
                     'run']
3170c05
         if cmds_after_breakpoint:
3170c05
             commands += cmds_after_breakpoint
c298168
--- Lib/test/test_gdb.py.old	2012-04-11 21:04:01.367073855 -0400
c298168
+++ Lib/test/test_gdb.py	2012-04-12 08:52:58.320288761 -0400
c298168
@@ -144,6 +153,10 @@
c298168
             '"set sysroot"?',
f5250ec
             'warning: Source file is more recent than executable.',
c298168
             )
c298168
+        ignore_patterns += ('warning: Unable to open',
c298168
+                            'Missing separate debuginfo for',
c298168
+                            'Try: yum --disablerepo=',
c298168
+                            'Undefined set print command')
c298168
         for line in errlines:
c298168
             if not line.startswith(ignore_patterns):
c298168
                 unexpected_errlines.append(line)