Skip to content

Commit 1535357

Browse files
Regression test for #1805
1 parent bd676be commit 1535357

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import unittest
4+
import system_tests
5+
from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors
6+
7+
# Check that `exiv2 -pr` works for different file types.
8+
# ExifTool has a list of markers that appear in the headers:
9+
# https://exiftool.org/makernote_types.html
10+
11+
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
12+
class exiv2pRHeaderTest(metaclass=CaseMeta):
13+
14+
url = "https://github.com/Exiv2/exiv2/issues/1805"
15+
16+
filename = system_tests.path("$data_path/exiv2-SonyDSC-HX60V.exv") # Uses marker: "SONY DSC "
17+
commands = ["$exiv2 -pR " + filename]
18+
19+
stderr = [""]
20+
retval = [0]
21+
22+
compare_stdout = check_no_ASAN_UBSAN_errors

0 commit comments

Comments
 (0)