[PATCH 02/22] flip_test: free FBs after each test run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Though the FBs will be freed implicitly at process exit, with the
growing number of test cases it's probably better not to let them
accumulate and free them as soon as we can.

Signed-off-by: Imre Deak <imre.deak at intel.com>
---
 tests/flip_test.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/flip_test.c b/tests/flip_test.c
index 3103589..d018c50 100644
--- a/tests/flip_test.c
+++ b/tests/flip_test.c
@@ -525,6 +525,9 @@ static void flip_mode(struct test_output *o, int crtc, int duration)
 	fprintf(stdout, "\npage flipping on crtc %d, connector %d: PASSED\n",
 		crtc, o->id);
 
+	kmstest_remove_fb(drm_fd, o->fb_ids[1]);
+	kmstest_remove_fb(drm_fd, o->fb_ids[0]);
+
 	drmModeFreeEncoder(o->encoder);
 	drmModeFreeConnector(o->connector);
 }
-- 
1.7.9.5



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux