From: Daniel Vetter Subject: [PATCH] lib/drmtest: Scream harder when igt_exit isn't called for subtest tests Date: Tue, 29 Oct 2013 11:35:10 +0100 Message-ID: <1383042910-13188-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 3658DEE158 for ; Tue, 29 Oct 2013 03:53:52 -0700 (PDT) Received: by mail-ee0-f53.google.com with SMTP id e51so2049319eek.12 for ; Tue, 29 Oct 2013 03:53:51 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org We really need this since otherwise the magic return value handling for running testcases with piglit (or on QA's validation infrastructure) doesn't work properly. We need to be careful though to only install this check on success. See also the previous commits to sprinkle igt_exit() calls over all the tests that missed it. Signed-off-by: Daniel Vetter --- lib/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 8164ef9..576b4ab 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -812,8 +812,6 @@ int igt_subtest_init_parse_opts(int argc, char **argv, case 'l': if (!run_single_subtest) list_subtests = true; - else - igt_install_exit_handler(check_igt_exit); break; case 'r': if (!list_subtests) @@ -842,6 +840,8 @@ int igt_subtest_init_parse_opts(int argc, char **argv, } } + igt_install_exit_handler(check_igt_exit); + out: return ret; } -- 1.8.1.4