You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
896 B
Python
33 lines
896 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
import unittest
|
|
|
|
# test needs system_tests.BT.vv['enable_bmff']=1
|
|
bSkip=system_tests.BT.verbose_version().get('enable_bmff')!='1'
|
|
if bSkip:
|
|
raise unittest.SkipTest('*** requires enable_bmff=1 ***')
|
|
|
|
class BmffImageboxHandlerLargeAllocation(metaclass=system_tests.CaseMeta):
|
|
"""
|
|
Regression test for the bug described in:
|
|
https://github.com/Exiv2/exiv2/issues/1793
|
|
"""
|
|
url = "https://github.com/Exiv2/exiv2/issues/1793"
|
|
filename = "$data_path/issue_1793_poc.heic"
|
|
|
|
if bSkip:
|
|
commands=[]
|
|
retval=[]
|
|
stdin=[]
|
|
stderr=[]
|
|
stdout=[]
|
|
print("*** test skipped. requires enable_bmff=1***")
|
|
else:
|
|
commands = ["$exiv2 $filename"]
|
|
stdout = [""]
|
|
stderr = ["""Exiv2 exception in print action for file $filename:
|
|
$kerCorruptedMetadata
|
|
"""]
|
|
retval = [1]
|