Skip to content

Commit

Permalink
Regression test for Exiv2#1706
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Jun 21, 2021
1 parent 15098f4 commit 75cdde0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Binary file added test/data/issue_1706_poc.exv
Binary file not shown.
24 changes: 24 additions & 0 deletions tests/bugfixes/github/test_issue_1706.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, path


class InvalidDateXMP(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1706
"""
url = "https://github.com/Exiv2/exiv2/issues/1706"

filename = path("$data_path/issue_1706_poc.exv")
commands = ["$exiv2 -PE $filename"]

stderr = [
"""Error: Directory Photo with 65280 entries considered invalid; not read.
"""
]
retval = [0]

def compare_stdout(self, i, command, got_stdout, expected_stdout):
""" We don't care about the stdout, just don't crash """
pass

0 comments on commit 75cdde0

Please sign in to comment.