2012-04-13 14:36:12 +00:00
|
|
|
--- Lib/test/test_gdb.py.old 2012-04-11 21:04:01.367073855 -0400
|
|
|
|
+++ Lib/test/test_gdb.py 2012-04-12 08:52:58.320288761 -0400
|
|
|
|
@@ -96,6 +96,15 @@ class DebuggerTests(unittest.TestCase):
|
|
|
|
# Generate a list of commands in gdb's language:
|
|
|
|
commands = ['set breakpoint pending yes',
|
|
|
|
'break %s' % breakpoint,
|
|
|
|
+
|
|
|
|
+ # GDB as of Fedora 17 onwards can distinguish between the
|
|
|
|
+ # value of a variable at entry vs current value:
|
|
|
|
+ # http://sourceware.org/gdb/onlinedocs/gdb/Variables.html
|
|
|
|
+ # which leads to the selftests failing with errors like this:
|
|
|
|
+ # AssertionError: 'v@entry=()' != '()'
|
|
|
|
+ # Disable this:
|
|
|
|
+ 'set print entry-values no',
|
|
|
|
+
|
|
|
|
'run']
|
|
|
|
if cmds_after_breakpoint:
|
|
|
|
commands += cmds_after_breakpoint
|
|
|
|
@@ -135,8 +144,16 @@ class DebuggerTests(unittest.TestCase):
|
Updated to Python 2.7.4.
- Refreshed patches: 0 (config), 7 (sqlite encoding), 16 (rpath in config),
55 (systemtap), 111 (no static lib), 112 (debug build), 113 (more
configuration flags), 130 (add extension to python config), 134 (fix
COUNT_ALLOCS in test_sys), 146 (haslib FIPS), 147 (add debug malloc stats),
153 (fix gdb test noise), 157 (uid, gid overflow - fixed upstream, just
keeping few more downstream tests), 165 (crypt module salt backport),
175 (fix configure Wformat), 5000 (regenerated autotooling patch)
- Dropped patches: 101 (lib64 regex; merged upstream), 171 (exception on
missing /dev/urandom; merged upstream), 172 (poll for multiprocessing socket
connection; merged upstream)
2013-04-09 08:54:58 +00:00
|
|
|
'Do you need "set solib-search-path" or '
|
|
|
|
'"set sysroot"?\n',
|
2012-04-13 14:36:12 +00:00
|
|
|
'')
|
|
|
|
+ err = '\n'.join([line
|
|
|
|
+ for line in err.splitlines()
|
|
|
|
+ if not line.startswith('warning: Unable to open')
|
|
|
|
+ if not line.startswith('Missing separate debuginfo for')
|
|
|
|
+ if not line.startswith('Try: yum --disablerepo=')
|
|
|
|
+ # In case 'set print entry-values no' failed:
|
|
|
|
+ if not line.startswith('Undefined set print command')])
|
|
|
|
|
|
|
|
# Ensure no unexpected error messages:
|
|
|
|
+ self.maxDiff = None
|
|
|
|
self.assertEqual(err, '')
|
|
|
|
|
|
|
|
return out
|