diff --git a/test/data/issue_94_poc3.pgf b/test/data/issue_94_poc3.pgf new file mode 100644 index 00000000..d4747083 Binary files /dev/null and b/test/data/issue_94_poc3.pgf differ diff --git a/tests/bugfixes/github/test_issue_984.py b/tests/bugfixes/github/test_issue_984.py new file mode 100644 index 00000000..fb7b8393 --- /dev/null +++ b/tests/bugfixes/github/test_issue_984.py @@ -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]