Bug#877727: test_rlib regression with llvm 5.0.0
Levente Polyak
levente at leventepolyak.net
Wed Oct 4 20:29:56 UTC 2017
Package: diffoscope
test_item1_elf and test_item3_deflate_llvm_bitcode are failing sine llvm
5.0.0.
> llvm-config --version
5.0.0
====================================================================
test session starts
====================================================================
platform linux -- Python 3.6.2, pytest-3.2.2, py-1.4.34, pluggy-0.4.0
rootdir: /home/anthraxx/Projects/external/diffoscope, inifile:
plugins: cov-2.5.1
collected 8 items
tests/comparators/test_rlib.py ....F.F.
=========================================================================
FAILURES
==========================================================================
______________________________________________________________________
test_item1_elf
_______________________________________________________________________
differences = [<Difference nm -s {} -- nm -s {} []>, <Difference
alloc_system-d16b8f0e.0.o -- alloc_system-d16b8f0e.0.o []>, <Differ...r
-dump {} []>, <Difference find {} -execdir llvm-dis -o - '{}' ';' --
find {} -execdir llvm-dis -o - '{}' ';' []>]>]>]
@skip_unless_tools_exist('nm')
@skip_if_binutils_does_not_support_x86()
def test_item1_elf(differences):
assert differences[1].source1 == 'alloc_system-d16b8f0e.0.o'
assert differences[1].source2 == 'alloc_system-d16b8f0e.0.o'
expected_diff = get_data('rlib_elf_expected_diff')
> assert differences[1].details[0].unified_diff == expected_diff
E IndexError: list index out of range
tests/comparators/test_rlib.py:75: IndexError
______________________________________________________________
test_item3_deflate_llvm_bitcode
______________________________________________________________
differences = [<Difference nm -s {} -- nm -s {} []>, <Difference
alloc_system-d16b8f0e.0.o -- alloc_system-d16b8f0e.0.o []>, <Differ...r
-dump {} []>, <Difference find {} -execdir llvm-dis -o - '{}' ';' --
find {} -execdir llvm-dis -o - '{}' ';' []>]>]>]
@skip_unless_tools_exist('llvm-dis')
@skip_unless_tool_is_at_least('llvm-config', llvm_version, '3.8')
def test_item3_deflate_llvm_bitcode(differences):
assert differences[3].source1 ==
'alloc_system-d16b8f0e.0.bytecode.deflate'
assert differences[3].source2 ==
'alloc_system-d16b8f0e.0.bytecode.deflate'
expected_diff = get_data('rlib_llvm_dis_expected_diff')
actual_diff = differences[3].details[0].details[1].unified_diff
> assert diff_ignore_line_numbers(actual_diff) ==
diff_ignore_line_numbers(expected_diff)
E AssertionError: assert '@@ -XX,XX +X...ntry-block:\n' == '@@
-XX,XX +XX...ntry-block:\n'
E Skipping 314 identical leading characters in diff, use -v to show
E - i64 %2) #2
E ? ^
E + i64 %2) #3
E ? ^
E - br label
%_ZN12alloc_system3imp10reallocate17h4a0811c9ec086854E.exit
E + br label
%_ZN12alloc_system3imp10reallocate1l44a0811c9ec086854E.exit...
E
E ...Full output truncated (42 lines hidden), use '-vv' to show
tests/comparators/test_rlib.py:91: AssertionError
============================================================ 2 failed, 6
passed in 1.74 seconds
=============================================================
More information about the Reproducible-builds
mailing list