churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame 00153-fix-test_gdb-noise.patch

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
             'Do you need "set solib-search-path" or '
c298168
             '"set sysroot"?',
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)