Merge pull request #1853 from Exiv2/mergify/bp/main/pr-1850
Add test for issue 1821 (backport #1850)
This commit is contained in:
commit
4bcccaab67
2
test/data/issue_1821_poc.xmp
Normal file
2
test/data/issue_1821_poc.xmp
Normal file
@ -0,0 +1,2 @@
|
||||
<?xpacket?>
|
||||
<xxm xmlns:potoヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒヒマチクチチチタチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチチID="3"/>
|
||||
27
tests/bugfixes/github/test_issue_1821.py
Normal file
27
tests/bugfixes/github/test_issue_1821.py
Normal file
@ -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]
|
||||
Loading…
Reference in New Issue
Block a user