Add test case for #2542

(cherry picked from commit aa1001309897e9b6870c136e30c186951b699080)
This commit is contained in:
Miloš Komarčević 2023-04-17 14:27:03 +02:00
parent 2df5b59c9f
commit c44eaa7064
2 changed files with 15 additions and 0 deletions

BIN
test/data/poc_2542.exv Normal file

Binary file not shown.

View File

@ -0,0 +1,15 @@
from system_tests import CaseMeta, path
class OMSystemMakerNoteAlias(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/2542
"""
url = "https://github.com/Exiv2/exiv2/issues/2542"
filename = path("$data_path/poc_2542.exv")
commands = ["$exiv2 -q -K Exif.Olympus2.CameraID $filename"]
stdout = ["""Exif.Olympus2.CameraID Undefined 32 OLYMPUS DIGITAL CAMERA
"""]
stderr = [""]
retval = [0]