From patchwork Tue Mar 11 16:18:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 3813241 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAE0C9F402 for ; Tue, 11 Mar 2014 16:19:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1581E20204 for ; Tue, 11 Mar 2014 16:19:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5820E201FD for ; Tue, 11 Mar 2014 16:19:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07CFEFADA9; Tue, 11 Mar 2014 09:19:07 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id E3003FA871 for ; Tue, 11 Mar 2014 09:18:55 -0700 (PDT) Received: by mail-wi0-f176.google.com with SMTP id hr14so1143913wib.9 for ; Tue, 11 Mar 2014 09:18:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=pBizIRzNgpgYE1m8EkD8hKc6tDZuslDtWL1Zb+TvyNE=; b=LQE7X1YTSnbr0cY4VBF5O7a4J5XQvrMsjJJpgD51K9ucpsZhZoxQt7gPLUNrS58omF x7VzWJgf9rb2+drgQxB1JEhCM+R0u6DRvcBRJenTxQUB0h7DEeaoYagHxlyXpx8Zbrlq qf+H0dwpgIYRH5lL/lI28NBus77LLqBhVsi9oTouua+bF6nrYfzOr6HZuZ/eeWHZCeKP l0W/NB4YDYJOi/iQ9Q2JRQUXqwwn3i9mnsoKQlpo3Ci4VKtbQfAWhQiD3OhdZ+W6Li7a hJMRD9O+JQ+AXMO7/WojCjXPNUTwu+uFrmc3yPWfiR/UnbmuSCyBDLwgXkaAXfx53tx8 31tg== X-Gm-Message-State: ALoCoQneEmkU8A3YFTw3srDuuClCMlFjXry0s36hQ56T61qEUiq5aS6lmW5+7vSP3VfhWkF5eR0z X-Received: by 10.180.149.143 with SMTP id ua15mr3620659wib.36.1394554735066; Tue, 11 Mar 2014 09:18:55 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id n3sm7869469wix.10.2014.03.11.09.18.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Mar 2014 09:18:54 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Tue, 11 Mar 2014 16:18:49 +0000 Message-Id: <1394554730-23229-3-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1394554730-23229-1-git-send-email-thomas.wood@intel.com> References: <1394554730-23229-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/3] lib: print the name of the currently running subtest X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- lib/drmtest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 9f6e701..b8d3542 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1007,6 +1007,9 @@ bool __igt_run_subtest(const char *subtest_name) return false; } + printf("Subtest %s: ", subtest_name); + fflush(stdout); + return (in_subtest = subtest_name); } @@ -1028,7 +1031,7 @@ static int igt_exitcode; static void exit_subtest(const char *) __attribute__((noreturn)); static void exit_subtest(const char *result) { - printf("Subtest %s: %s\n", in_subtest, result); + printf("%s\n", result); in_subtest = NULL; longjmp(igt_subtest_jmpbuf, 1); }