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

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