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.

26 lines
779 B
Python

# -*- coding: utf-8 -*-
import system_tests
from system_tests import CaseMeta, path, CopyTmpFiles, check_no_ASAN_UBSAN_errors
class TestExiv2ExtractThumbnailToStdout(metaclass=CaseMeta):
"""
Regression test for 'extracting a thumbnail to stdout' bug described in:
https://github.com/Exiv2/exiv2/issues/1934
"""
url = "https://github.com/Exiv2/exiv2/issues/1934"
encodings = [bytes]
def setUp(self):
self.stdout = [bytes(open(self.expand_variables("$filename_ref"),'rb').read())]
filename = path("$data_path/issue_1934_poc1.exv")
filename_ref = path("$data_path/issue_1934_poc1-thumb.jpg")
commands = ["$exiv2 --force --extract t- $filename"]
stderr = [bytes([])]
retval = [0]