Blame tests/bugfixes/github/test_issue_262.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
Packit Service 21b5d1
Packit Service 21b5d1
class DivByZeroInPrintIFD(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    url = "https://github.com/Exiv2/exiv2/issues/262"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = system_tests.path(
Packit Service 21b5d1
        "$data_path/7-printIFD-divbyzero-1"
Packit Service 21b5d1
    )
Packit Service 21b5d1
    commands = ["$exiv2 -pX $filename"]
Packit Service 21b5d1
    stdout = [
Packit Service 21b5d1
        """STRUCTURE OF BIGTIFF FILE $filename
Packit Service 21b5d1
 address |    tag                           |      type |    count |    offset | value
Packit Service 21b5d1
      10 | 0x0008 FlashSetting              |   unknown |        0 |           | 
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    stderr = [
Packit Service 21b5d1
        """$exiv2_exception_message $filename:
Packit Service 21b5d1
$kerCorruptedMetadata
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    retval = [1]