python38/python3-3.4.3-fix-test_gdb-noise.patch
2015-02-26 22:40:55 +04:00

29 lines
1.5 KiB
Diff

diff -Naur Python-3.4.3.orig/Lib/test/test_gdb.py Python-3.4.3/Lib/test/test_gdb.py
--- Python-3.4.3.orig/Lib/test/test_gdb.py 2015-02-26 22:33:10.000000000 +0400
+++ Python-3.4.3/Lib/test/test_gdb.py 2015-02-26 22:34:14.000000000 +0400
@@ -124,6 +124,14 @@
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',
+
# The tests assume that the first frame of printed
# backtrace will not contain program counter,
# that is however not guaranteed by gdb
@@ -197,6 +205,10 @@
'Missing separate debuginfo for ',
'Try: zypper install -C ',
)
+ ignore_patterns += ('warning: Unable to open',
+ 'Missing separate debuginfo for',
+ 'Try: yum --disablerepo=',
+ 'Undefined set print command')
for line in errlines:
if not line.startswith(ignore_patterns):
unexpected_errlines.append(line)