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