Regression test for the bug described in: https://github.com/Exiv2/exiv2/issues/1793
| 9 | raise unittest.SkipTest('*** requires enable_bmff=1 ***') |
| 10 | |
| 11 | class BmffImageboxHandlerLargeAllocation(metaclass=system_tests.CaseMeta): |
| 12 | """ |
| 13 | Regression test for the bug described in: |
| 14 | https://github.com/Exiv2/exiv2/issues/1793 |
| 15 | """ |
| 16 | url = "https://github.com/Exiv2/exiv2/issues/1793" |
| 17 | filename = "$data_path/issue_1793_poc.heic" |
| 18 | |
| 19 | if bSkip: |
| 20 | commands=[] |
| 21 | retval=[] |
| 22 | stdin=[] |
| 23 | stderr=[] |
| 24 | stdout=[] |
| 25 | print("*** test skipped. requires enable_bmff=1***") |
| 26 | else: |
| 27 | commands = ["$exiv2 $filename"] |
| 28 | stdout = [""] |
| 29 | stderr = ["""Exiv2 exception in print action for file $filename: |
| 30 | $kerCorruptedMetadata |
| 31 | """] |
| 32 | retval = [1] |