Fixes: 1. Fix Windows native build error introduced in pr#2053. Correct problem of mismatched Windows/Linux newlines. 2. Remove dependency on command line tools being available.
26 lines
779 B
Python
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]
|
|
|