Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932310AbbEHWJ5 (ORCPT ); Fri, 8 May 2015 18:09:57 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:54992 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932226AbbEHWJy (ORCPT ); Fri, 8 May 2015 18:09:54 -0400 From: Darren Hart To: linux-api@vger.kernel.org, Linux Kernel Mailing List Cc: Darren Hart , Shuah Khan , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Davidlohr Bueso , KOSAKI Motohiro Subject: [PATCH 3/5] selftest/futex: Increment ksft pass and fail counters Date: Fri, 8 May 2015 15:09:45 -0700 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: <57d921b1c30e8258ca4b2f55637424527317e92f.1431121818.git.dvhart@linux.intel.com> References: <57d921b1c30e8258ca4b2f55637424527317e92f.1431121818.git.dvhart@linux.intel.com> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2028 Lines: 61 Add kselftest.h to logging.h and increment the pass and fail counters as part of the print_result routine which is called by all futex tests. Cc: Shuah Khan Cc: linux-api@vger.kernel.org Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Davidlohr Bueso Cc: KOSAKI Motohiro Signed-off-by: Darren Hart --- tools/testing/selftests/futex/functional/Makefile | 2 +- tools/testing/selftests/futex/include/logging.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index fb96927..e64d43b 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,4 +1,4 @@ -INCLUDES := -I../include +INCLUDES := -I../include -I../../ CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE $(INCLUDES) LDFLAGS := $(LDFLAGS) -lpthread -lrt diff --git a/tools/testing/selftests/futex/include/logging.h b/tools/testing/selftests/futex/include/logging.h index f6ed5c2..014aa01 100644 --- a/tools/testing/selftests/futex/include/logging.h +++ b/tools/testing/selftests/futex/include/logging.h @@ -24,6 +24,7 @@ #include #include #include +#include "kselftest.h" /* * Define PASS, ERROR, and FAIL strings with and without color escape @@ -111,12 +112,14 @@ void print_result(int ret) switch (ret) { case RET_PASS: + ksft_inc_pass_cnt(); result = PASS; break; case RET_ERROR: result = ERROR; break; case RET_FAIL: + ksft_inc_fail_cnt(); result = FAIL; break; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/