Commit e1eef9a7 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

tests: use checked fixture

The checked fixture run in the child test process.

Fix leaks found thanks to AddressSanitizer.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent c54e1a76
......@@ -470,7 +470,7 @@ Suite *virgl_init_suite(void)
suite_add_tcase(s, tc_core);
tc_core = tcase_create("init_std");
tcase_add_unchecked_fixture(tc_core, testvirgl_init_single_ctx_nr, testvirgl_fini_single_ctx);
tcase_add_checked_fixture(tc_core, testvirgl_init_single_ctx_nr, testvirgl_fini_single_ctx);
tcase_add_test(tc_core, virgl_init_egl_create_ctx_create_bind_res);
tcase_add_test(tc_core, virgl_init_egl_create_ctx_create_bind_res_illegal_ctx);
tcase_add_test(tc_core, virgl_init_egl_create_ctx_create_bind_res_illegal_res);
......
......@@ -734,7 +734,7 @@ Suite *virgl_init_suite(void)
s = suite_create("virgl_transfer");
tc_core = tcase_create("transfer_direct");
tcase_add_unchecked_fixture(tc_core, testvirgl_init_single_ctx_nr, testvirgl_fini_single_ctx);
tcase_add_checked_fixture(tc_core, testvirgl_init_single_ctx_nr, testvirgl_fini_single_ctx);
tcase_add_test(tc_core, virgl_test_transfer_read_illegal_ctx);
tcase_add_test(tc_core, virgl_test_transfer_write_illegal_ctx);
tcase_add_test(tc_core, virgl_test_transfer_read_unbound_res);
......
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