Add remaining pocs for the issue 428 and adapt the regression test

v0.27.3
Luis Díaz Más 7 years ago
parent 6d1c318fc6
commit 7d32da890b

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

@ -2,6 +2,10 @@
import system_tests import system_tests
def stderr_exception (fname):
return """$exiv2_exception_message """ + fname + """:
$kerFailedToReadImageData
"""
class PngReadRawProfile(metaclass=system_tests.CaseMeta): class PngReadRawProfile(metaclass=system_tests.CaseMeta):
@ -12,14 +16,20 @@ class PngReadRawProfile(metaclass=system_tests.CaseMeta):
system_tests.path("$data_path/issue_428_poc2.png"), system_tests.path("$data_path/issue_428_poc2.png"),
system_tests.path("$data_path/issue_428_poc3.png"), system_tests.path("$data_path/issue_428_poc3.png"),
system_tests.path("$data_path/issue_428_poc4.png"), system_tests.path("$data_path/issue_428_poc4.png"),
system_tests.path("$data_path/issue_428_poc5.png"),
system_tests.path("$data_path/issue_428_poc8.png"),
system_tests.path("$data_path/issue_428_poc6.png"),
system_tests.path("$data_path/issue_428_poc7.png"),
] ]
commands = ["$exiv2 " + fname for fname in filenames] commands = ["$exiv2 " + fname for fname in filenames]
stdout = [""] * len(filenames) stdout = [""] * len(filenames)
stderr = [ stderr = [ stderr_exception(fname) for fname in filenames[0:6] ]
"""$exiv2_exception_message """ + fname + """: stderr.append("""Error: XMP Toolkit error 201: XML parsing failure
$kerFailedToReadImageData Warning: Failed to decode XMP metadata.
""" """ + stderr_exception(filenames[6]))
for fname in filenames stderr.append("""Warning: Failed to decode Exif metadata.
] """ + stderr_exception(filenames[7]))
retval = [1] * len(filenames) retval = [1] * len(filenames)

Loading…
Cancel
Save