Add second test file for better code coverage.
This commit is contained in:
parent
60144df557
commit
ddd1c47f8b
BIN
test/data/issue_1881_coverage.jpg
Normal file
BIN
test/data/issue_1881_coverage.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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):
|
||||
"""
|
||||
@ -10,11 +10,13 @@ class SonyPreviewImageLargeAllocation(metaclass=CaseMeta):
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/issues/1881"
|
||||
|
||||
filename = path("$tmp_path/issue_1881_poc.jpg")
|
||||
commands = ["$exiv2 -q -d I rm $filename"]
|
||||
stdout = [""]
|
||||
filename1 = path("$tmp_path/issue_1881_poc.jpg")
|
||||
filename2 = path("$tmp_path/issue_1881_coverage.jpg")
|
||||
commands = ["$exiv2 -q -d I rm $filename1", "$exiv2 -q -d I rm $filename2"]
|
||||
stdout = ["",""]
|
||||
stderr = [
|
||||
"""Exiv2 exception in erase action for file $filename:
|
||||
"""Exiv2 exception in erase action for file $filename1:
|
||||
$kerCorruptedMetadata
|
||||
"""]
|
||||
retval = [1]
|
||||
""",
|
||||
""]
|
||||
retval = [1,0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user