glib/gio/tests/test6.gresource.xml
Philip Withnall 7ed386a10b
tests: Add test for decompression failure in GResource
This was one of the code paths not currently covered by unit tests, so
let’s add a test for it.

This tests what happens when a structurally valid GResource file, but
with a corrupt entry for a compressed file, is loaded.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3465
2024-09-09 17:37:52 +01:00

8 lines
282 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource>
<!-- An arbitrary text file which is large enough to have a non-trivial compressed form -->
<file compressed="true" alias="test-corrupt-compression.txt">test.gresource.xml</file>
</gresource>
</gresources>