Blame SOURCES/00153-fix-test_gdb-noise.patch

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