Add second test file for better code coverage.

main
Kevin Backhouse 4 years ago
parent 60144df557
commit ddd1c47f8b
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from system_tests import CaseMeta, CopyTmpFiles, path from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/issue_1881_poc.jpg") @CopyTmpFiles("$data_path/issue_1881_poc.jpg", "$data_path/issue_1881_coverage.jpg")
class SonyPreviewImageLargeAllocation(metaclass=CaseMeta): class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
""" """
@ -10,11 +10,13 @@ class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
""" """
url = "https://github.com/Exiv2/exiv2/issues/1881" url = "https://github.com/Exiv2/exiv2/issues/1881"
filename = path("$tmp_path/issue_1881_poc.jpg") filename1 = path("$tmp_path/issue_1881_poc.jpg")
commands = ["$exiv2 -q -d I rm $filename"] filename2 = path("$tmp_path/issue_1881_coverage.jpg")
stdout = [""] commands = ["$exiv2 -q -d I rm $filename1", "$exiv2 -q -d I rm $filename2"]
stdout = ["",""]
stderr = [ stderr = [
"""Exiv2 exception in erase action for file $filename: """Exiv2 exception in erase action for file $filename1:
$kerCorruptedMetadata $kerCorruptedMetadata
"""] """,
retval = [1] ""]
retval = [1,0]

Loading…
Cancel
Save