Skip to content

Commit

Permalink
Regression test for Exiv2#1830
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 2, 2021
1 parent b364b1d commit 8b844c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added test/data/issue_1830_poc.tiff
Binary file not shown.
17 changes: 17 additions & 0 deletions tests/bugfixes/github/test_issue_1830.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors

class ValueTypeFloatToLong(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1830
"""
url = "https://github.com/Exiv2/exiv2/issues/1830"

filename = path("$data_path/issue_1830_poc.tiff")
commands = ["$exiv2 -q $filename"]
stderr = [""]
retval = [0]

compare_stdout = check_no_ASAN_UBSAN_errors

0 comments on commit 8b844c2

Please sign in to comment.