From cfc9ee5ba55f4d37af81f61f3ff80da5eac75a08 Mon Sep 17 00:00:00 2001 From: Mamta Shukla Date: Sun, 3 Feb 2019 20:15:40 +0530 Subject: tests/kms_cursor_crc.c: Remove framebuffer at the end of the test Use igt_remove_fb(data->drm_fd, &data->fb) to remove locally created framebuffer at the end of the hardware test loop in test_cursor_size() function for cursor-size-change subtest in kms_cursor_crc. Signed-off-by: Mamta Shukla Reviewed-by: Harry Wentland Reviewed-by: Rodrigo Siqueira --- tests/kms_cursor_crc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/kms_cursor_crc.c') diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 144b44b0..fd74fda5 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -583,6 +583,7 @@ static void test_cursor_size(data_t *data) igt_pipe_crc_collect_crc(pipe_crc, &crc[i]); } cursor_disable(data); + igt_remove_fb(data->drm_fd, &data->fb); /* Software test loop */ for (i = 0, size = cursor_max_size; size >= 64; size /= 2, i++) { /* Now render the same in software and collect crc */ -- cgit v1.2.3