Skip to content
Snippets Groups Projects
Commit 67ea293d authored by Patrick Griffis's avatar Patrick Griffis
Browse files

tests: Fix brotli test comparing non-NUL-terminated data as a string

parent e7f842c3
Branches
Tags
No related merge requests found
......@@ -54,6 +54,9 @@ test_brotli (void)
g_assert_cmpint (result, ==, G_CONVERTER_FINISHED);
/* NUL terminate data so we can cmpstr below. */
g_byte_array_append (out_bytes, (const guint8*)"\0", 1);
g_free (contents);
g_assert_true (g_file_get_contents (uncompressed_filename, &contents, &length, NULL));
g_assert_cmpstr ((char*)out_bytes->data, ==, contents);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment