From b07c480a0aa68c3a230cfdd44a4277285356c0e4 Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Sun, 4 Nov 2018 21:55:10 +0100 Subject: [PATCH] Add regression test for #511 --- test/data/pocIssue511 | Bin 0 -> 283 bytes tests/bugfixes/github/test_issue_511.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/data/pocIssue511 create mode 100644 tests/bugfixes/github/test_issue_511.py diff --git a/test/data/pocIssue511 b/test/data/pocIssue511 new file mode 100644 index 0000000000000000000000000000000000000000..15da76a7fae4554babaae4036642d96b6af634ee GIT binary patch literal 283 vcmebD)MEJ0fCktg{Qr;9#3|=0k!gei1H&Sa)_MkpcVrrYQ`;W~MyzrG=a>fa literal 0 HcmV?d00001 diff --git a/tests/bugfixes/github/test_issue_511.py b/tests/bugfixes/github/test_issue_511.py new file mode 100644 index 00000000..89239b53 --- /dev/null +++ b/tests/bugfixes/github/test_issue_511.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +import system_tests + + +class ThrowsWhenIFDsAreMalformed(metaclass=system_tests.CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/511" + + filename = system_tests.path("$data_path/pocIssue511") + commands = ["$exiv2 -pR " + filename] + retval = [1] + stdout = ["""STRUCTURE OF TIFF FILE (II): """ + filename + """ +"""] + stderr = ["""$exiv2_exception_message """ + filename + """: +$kerCorruptedMetadata +"""]