Skip to content

Commit

Permalink
Regression test for #1570.
Browse files Browse the repository at this point in the history
(cherry picked from commit 386e464)

# Conflicts:
#	tests/bugfixes/github/test_issue_1570.py
  • Loading branch information
kevinbackhouse authored and mergify-bot committed May 10, 2021
1 parent 9dbffa7 commit 7fc5081
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/bugfixes/github/test_issue_1570.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

<<<<<<< HEAD
import system_tests
import unittest

Expand All @@ -9,11 +10,18 @@
raise unittest.SkipTest('*** requires enable_bmff=1 ***')

class BmffImageReadMetadataOutOfBoundsRead(metaclass=system_tests.CaseMeta):
=======
from system_tests import CaseMeta, path


class BmffImageReadMetadataOutOfBoundsRead(metaclass=CaseMeta):
>>>>>>> 386e464e1... Regression test for https://github.com/Exiv2/exiv2/issues/1570.
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1570
"""
url = "https://github.com/Exiv2/exiv2/issues/1570"
<<<<<<< HEAD
filename = "$data_path/issue_1570_poc.bmff"

if bSkip:
Expand All @@ -31,3 +39,13 @@ class BmffImageReadMetadataOutOfBoundsRead(metaclass=system_tests.CaseMeta):
$kerCorruptedMetadata
"""]
retval = [1]
=======

filename = path("$data_path/issue_1570_poc.bmff")
commands = ["$exiv2 $filename"]
stdout = [""]
stderr = [
"""$filename1: Could not write metadata to file: $kerCorruptedMetadata
"""]
retval = [1]
>>>>>>> 386e464e1... Regression test for https://github.com/Exiv2/exiv2/issues/1570.

0 comments on commit 7fc5081

Please sign in to comment.