From e1eef9a7f917c3d16990c2bedbe0fe09f61442b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 21 Jan 2016 17:12:27 +0100 Subject: [PATCH] tests: use checked fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The checked fixture run in the child test process. Fix leaks found thanks to AddressSanitizer. Signed-off-by: Marc-André Lureau --- tests/test_virgl_init.c | 2 +- tests/test_virgl_transfer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_virgl_init.c b/tests/test_virgl_init.c index 46d61e5..c13f762 100644 --- a/tests/test_virgl_init.c +++ b/tests/test_virgl_init.c @@ -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); diff --git a/tests/test_virgl_transfer.c b/tests/test_virgl_transfer.c index 45f4b4c..4f6f26d 100644 --- a/tests/test_virgl_transfer.c +++ b/tests/test_virgl_transfer.c @@ -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);