Skip to content

Commit

Permalink
Test for #1821
Browse files Browse the repository at this point in the history
(cherry picked from commit d54e3e5)
  • Loading branch information
kevinbackhouse authored and mergify-bot committed Aug 6, 2021
1 parent 0dc5cdd commit e5bcc64
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/data/issue_1821_poc.xmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
㰿硰慣步琿㸊㱸硭⁸浬湳㩰潴濋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯋쯏솸쇁쇀쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁쇁셉䐽∳∯�
<xxm xmlns:poto��������������������������������������������������������������������������������������������������������������������������������ID="3"/>
27 changes: 27 additions & 0 deletions tests/bugfixes/github/test_issue_1821.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, path
import unittest

# Issue #1821 is a memory leak caused by buggy third-party
# code in the xmpsdk sub-directory, so it isn't easy for us to fix.
# This test will fail when run with an ASAN build.
@unittest.skip("Skipping test until #1821 is fixed")

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

filename = path("$data_path/issue_1821_poc.xmp")
commands = ["$exiv2 -q $filename"]
stdout = ["""File name : $filename
File size : 163 Bytes
MIME type : application/rdf+xml
Image size : 0 x 0
"""]
stderr = ["""$filename: No Exif data found in the file
"""]
retval = [253]

0 comments on commit e5bcc64

Please sign in to comment.