Commit 3f7afab5 authored by Moritz Lipp's avatar Moritz Lipp

Fix test_annotation_new test case

parent 872f11a2
......@@ -15,12 +15,6 @@ option('tests',
)
option('enable-libfiu',
type: 'boolean',
value: false,
description: 'Enable libfiu fault injection support for testing if available.'
)
option('use-libfiu',
type: 'boolean',
value: false,
value: true,
description: 'Enable libfiu fault injection support for testing if available.'
)
......@@ -62,7 +62,7 @@ START_TEST(test_annotation_new) {
/* fault injection */
#ifdef WITH_LIBFIU
fiu_enable("libc/mm/calloc", 1, NULL, 0);
fail_unless(zathura_annotation_new(page, &test_annotation, ZATHURA_PAGE_TRANSITION_SPLIT) == ZATHURA_ERROR_OUT_OF_MEMORY);
fail_unless(zathura_annotation_new(page, &test_annotation, ZATHURA_ANNOTATION_HIGHLIGHT) == ZATHURA_ERROR_OUT_OF_MEMORY);
fiu_disable("libc/mm/calloc");
#endif
} END_TEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment