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