-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Check if embedded RAF image is really a TIFF (cherry picked from commit be12ae6) * Clarify comment on old vs new RAF Co-authored-by: Christoph Hasse <[email protected]> (cherry picked from commit 30f39ac) * Check I/O read result on RAF inspection Co-authored-by: Kevin Backhouse <[email protected]> (cherry picked from commit 09de8dc) * Add test (cherry picked from commit 9c3db7f) Co-authored-by: Miloš Komarčević <[email protected]> Co-authored-by: Miloš Komarčević <[email protected]>
- Loading branch information
1 parent
cca3e07
commit 66259b1
Showing
4 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, path | ||
|
||
|
||
class RafNoTiffRegression(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/1791 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/1791" | ||
|
||
filename1 = path("$data_path/issue_1791_old.raf") | ||
filename2 = path("$data_path/issue_1791_new.raf") | ||
commands = ["$exiv2 -pa $filename1", "$exiv2 -pa $filename2"] | ||
stdout = ["""Exif.Image2.JPEGInterchangeFormat Long 1 104 | ||
Exif.Image2.JPEGInterchangeFormatLength Long 1 12 | ||
""", | ||
"""Exif.Image2.JPEGInterchangeFormat Long 1 104 | ||
Exif.Image2.JPEGInterchangeFormatLength Long 1 12 | ||
Exif.Image.NewSubfileType Long 1 Primary image | ||
"""] | ||
stderr = ["", ""] | ||
retval = [0, 0] |