churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame 00153-fix-test_gdb-noise.patch

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