From e5bdddc886c7a6642de89516650a10c434a25e97 Mon Sep 17 00:00:00 2001 From: clanmills Date: Tue, 19 May 2020 16:13:08 +0100 Subject: [PATCH] fix_547_0.27 --- test/data/issue_547.poc | Bin 0 -> 34 bytes tests/bugfixes/github/test_issue_547.py | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/data/issue_547.poc create mode 100644 tests/bugfixes/github/test_issue_547.py diff --git a/test/data/issue_547.poc b/test/data/issue_547.poc new file mode 100644 index 0000000000000000000000000000000000000000..1427e8eeda35b714ebf1cd478b18e2b9403eb469 GIT binary patch literal 34 bcmebD)MDUb00M4C21W)B5DN^zVqg{k8}0z+ literal 0 HcmV?d00001 diff --git a/tests/bugfixes/github/test_issue_547.py b/tests/bugfixes/github/test_issue_547.py new file mode 100644 index 00000000..4713a9d9 --- /dev/null +++ b/tests/bugfixes/github/test_issue_547.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, path + +class test_issue_547(metaclass=CaseMeta): + """ + Regression test for the bug described in: + https://github.com/Exiv2/exiv2/pull/960 + """ + url = "https://github.com/Exiv2/exiv2/issues/547" + + filename = path("$data_path/issue_547.poc") + commands = ["$exiv2 -pR $filename"] + stdout = ["""STRUCTURE OF TIFF FILE (II): $filename + address | tag | type | count | offset | value + 12 | 0x0001 Version | SSHORT | 0 | | +"""] + stderr = [ +"""Exiv2 exception in print action for file $filename: +$kerCorruptedMetadata +""" +] + retval = [1]