[diffoscope] 04/05: Ignore line numbers because different llvm-dis versions output extra metadata

Levente Polyak levente at leventepolyak.net
Sat Aug 13 03:52:17 CEST 2016


On 08/13/2016 03:05 AM, Ximin Luo wrote:
> This is an automated email from the git hooks/post-receive script.
> 
> infinity0 pushed a commit to branch master
> in repository diffoscope.
> 
> commit a034a335665a4f9ae26ab6e9b92b1e7114eae223
> Author: Ximin Luo <infinity0 at debian.org>
> Date:   Sat Aug 13 02:51:23 2016 +0200
> 
>     Ignore line numbers because different llvm-dis versions output extra metadata
> ---
>  diffoscope/comparators/utils.py | 7 +++++++
>  tests/comparators/test_rlib.py  | 4 +++-
>  2 files changed, 10 insertions(+), 1 deletion(-)
> 

test_rlib.py is failing with latest git version f07290ee6:

differences = [<Difference alloc_system-d16b8f0e.0.o --
alloc_system-d16b8f0e.0.o [<Difference objdump --line-numbers
--disassemble ...em-d16b8f0e.0.bytecode.deflate [<Difference
alloc_system-d16b8f0e.0.bytecode -- alloc_system-d16b8f0e.0.bytecode []>]>]

    def test_item2_deflate_llvm_bitcode(differences):
        assert differences[2].source1 ==
'alloc_system-d16b8f0e.0.bytecode.deflate'
        assert differences[2].source2 ==
'alloc_system-d16b8f0e.0.bytecode.deflate'
        expected_diff = open(os.path.join(os.path.dirname(__file__),
'../data/rlib_llvm_dis_expected_diff')).read()
>       actual_diff = differences[2].details[0].details[1].unified_diff
E       IndexError: list index out of range

tests/comparators/test_rlib.py:68: IndexError



More information about the diffoscope mailing list