exiv2/tests/bugfixes/github/test_issue_159.py
Dan Čermák eeb520bf39 [testsuite] Add reproducer for second bug from #159
The bug described in the issue got resolved by PR #461 (slices).
2018-10-12 00:41:46 +02:00

28 lines
798 B
Python

# -*- coding: utf-8 -*-
import system_tests
class TestFirstPoC(metaclass=system_tests.CaseMeta):
"""
Regression test for the two bugs described in:
https://github.com/Exiv2/exiv2/issues/159
We do not actually check the output of these files, we only check that we
don't get a crash (the metadata are bogus anyway, so no point in checking).
"""
url = "https://github.com/Exiv2/exiv2/issues/159"
filename = [
system_tests.path("$data_path/printStructure"),
system_tests.path("$data_path/printStructure2")
]
commands = [
"$exiv2 " + filename[0],
"$exiv2 -pS " + filename[1],
]
retval = [0, 1]
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
compare_stdout = system_tests.check_no_ASAN_UBSAN_errors