An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 --- Lib/test/test_gdb.py.old    2012-04-11 21:04:01.367073855 -0400
CB 2 +++ Lib/test/test_gdb.py    2012-04-12 08:52:58.320288761 -0400
3 @@ -96,6 +96,15 @@ class DebuggerTests(unittest.TestCase):
4          # Generate a list of commands in gdb's language:
5          commands = ['set breakpoint pending yes',
6                      'break %s' % breakpoint,
7 +
8 +                    # GDB as of Fedora 17 onwards can distinguish between the
9 +                    # value of a variable at entry vs current value:
10 +                    #   http://sourceware.org/gdb/onlinedocs/gdb/Variables.html
11 +                    # which leads to the selftests failing with errors like this:
12 +                    #   AssertionError: 'v@entry=()' != '()'
13 +                    # Disable this:
14 +                    'set print entry-values no',
15 +
16                      'run']
17          if cmds_after_breakpoint:
18              commands += cmds_after_breakpoint
19 --- Lib/test/test_gdb.py.old    2012-04-11 21:04:01.367073855 -0400
20 +++ Lib/test/test_gdb.py    2012-04-12 08:52:58.320288761 -0400
21 @@ -144,6 +153,10 @@
22              'Do you need "set solib-search-path" or '
23              '"set sysroot"?',
24              )
25 +        ignore_patterns += ('warning: Unable to open',
26 +                            'Missing separate debuginfo for',
27 +                            'Try: yum --disablerepo=',
28 +                            'Undefined set print command')
29          for line in errlines:
30              if not line.startswith(ignore_patterns):
31                  unexpected_errlines.append(line)