Skip to content

Commit

Permalink
Add regression test for #950
Browse files Browse the repository at this point in the history
Note: the test times out
  • Loading branch information
piponazo committed Jul 15, 2019
1 parent 578552d commit 08d5490
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Binary file added test/data/issue_950
Binary file not shown.
29 changes: 29 additions & 0 deletions tests/bugfixes/github/test_issue_950.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-

import os
import shutil

import system_tests

URL = "https://github.com/Exiv2/exiv2/issues/950"

@system_tests.CopyFiles("$data_path/issue_950")
class TiffImageIntOutOfBoundsRead(metaclass=system_tests.CaseMeta):
"""
Regression test for the issue reported in #950.
"""

def setUp(self):
shutil.copy(self.filename, self.filenameExv)

def tearDown(self):
os.remove(self.filenameExv)

filename = system_tests.path("$data_path/issue_950_copy")
filenameExv = system_tests.path("$data_path/issue_950_copy.exv")

commands = ["$exiv2 insert $filenameExv"]
stdout = [""]
stderr = ["""$filenameExv: Could not write metadata to file: $kerCorruptedMetadata
"""]
retval = [1]

0 comments on commit 08d5490

Please sign in to comment.