From: Imre Deak Subject: [PATCH 02/22] flip_test: free FBs after each test run Date: Tue, 16 Oct 2012 17:34:36 +0300 Message-ID: <1350398096-3649-3-git-send-email-imre.deak@intel.com> References: <1350398096-3649-1-git-send-email-imre.deak@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 82B469F378 for ; Tue, 16 Oct 2012 07:35:05 -0700 (PDT) In-Reply-To: <1350398096-3649-1-git-send-email-imre.deak@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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 --- 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