Adding test files

This commit is contained in:
clanmills 2020-03-29 15:57:40 +01:00
parent 6006bb1c23
commit 9b07cff26a
2 changed files with 20 additions and 0 deletions

BIN
test/data/issue_94_poc3.pgf Normal file

Binary file not shown.

View File

@ -0,0 +1,20 @@
import system_tests
class XMPMetaDeleteNamespace(
metaclass=system_tests.CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/984
"""
url = "https://github.com/Exiv2/exiv2/issues/984"
filename = system_tests.path(
"$data_path/issue_94_poc3.pgf"
)
commands = ["$exiv2json $filename"]
stdout = ["""Caught Exiv2 exception 'XMP Toolkit error 9: Fatal namespace map problem'
"""]
stderr = ["""Warning: Removing 54 characters from the beginning of the XMP packet
"""]
retval = [1]