From 23dfda54bebe6ea239f30d2e8c814a7533b0c549 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Thu, 5 Aug 2021 15:21:46 +0100 Subject: [PATCH] Regression test for https://github.com/Exiv2/exiv2/issues/1845 (cherry picked from commit f8c71359a6fd0fb23823454e931b9739013d293a) --- test/data/issue_1845_poc.jp2 | Bin 0 -> 3043 bytes tests/bugfixes/github/test_issue_1845.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/data/issue_1845_poc.jp2 create mode 100644 tests/bugfixes/github/test_issue_1845.py diff --git a/test/data/issue_1845_poc.jp2 b/test/data/issue_1845_poc.jp2 new file mode 100644 index 0000000000000000000000000000000000000000..035d629621555b85ecbf0cbabc912ee4c115521f GIT binary patch literal 3043 zcmeHJ&uo}s3 zdZ;2*AjF~d2}P<@g&g3*seeEZJ)r&t?F|k+a^YUK@0(pG+Ynk12n6C=?arHT-n{+h z$9}T_Hcl07dsF&a8bIGvIQ##j2kFm~7Njz(3iij~qRwt)!S^gA&>en^=Waa@-yr4!IUhH8h%RP8hs zWEWUJbKPXSFGBS!g^Vv*?~U+9;>=P)Hk29vwx#gh(igW=CJqWhMOb)hIphfCPJ~VW znBOwk!dY^XF@HLSH^#8Lj0J|0Th{1dmzxqYO&0dMql(`gP`)IdGVkkK!!mzYOI}0ypO<%i)sC*?S1}96G0E$ x(OKJ{wa4wLhF5t$0iH3jKG})7IWzEor^ZBmX2zR8gy2teUO*SK=J(_K)IaS(#+d*B literal 0 HcmV?d00001 diff --git a/tests/bugfixes/github/test_issue_1845.py b/tests/bugfixes/github/test_issue_1845.py new file mode 100644 index 00000000..6332ab18 --- /dev/null +++ b/tests/bugfixes/github/test_issue_1845.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, CopyTmpFiles, path +@CopyTmpFiles("$data_path/issue_1845_poc.jp2") + +class TiffDirectoryWriteDirEntryAssert(metaclass=CaseMeta): + """ + Regression test for the bug described in: + https://github.com/Exiv2/exiv2/issues/1845 + """ + url = "https://github.com/Exiv2/exiv2/issues/1845" + + filename = path("$tmp_path/issue_1845_poc.jp2") + commands = ["$exiv2 -q -D +1 ad $filename"] + stderr = [""] + stdout = [""] + retval = [0]