Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbdHJXxb (ORCPT ); Thu, 10 Aug 2017 19:53:31 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:57066 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752120AbdHJXx0 (ORCPT ); Thu, 10 Aug 2017 19:53:26 -0400 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" From: Shuah Khan To: john.stultz@linaro.org, shuah@kernel.org Cc: Shuah Khan , tglx@linutronix.de, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 2/3] selftests: timers: posix_timers: fix to work without ksft framework Date: Thu, 10 Aug 2017 17:53:19 -0600 Message-Id: <4d61413eca3d45124f3207150d2ab55a1b83e911.1502404902.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 680 Lines: 25 Fix to build and run without ksft framework like the other timers tests. Signed-off-by: Shuah Khan --- tools/testing/selftests/timers/posix_timers.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/timers/posix_timers.c b/tools/testing/selftests/timers/posix_timers.c index 15cf56d32155..c6dc92c2dc12 100644 --- a/tools/testing/selftests/timers/posix_timers.c +++ b/tools/testing/selftests/timers/posix_timers.c @@ -15,7 +15,11 @@ #include #include +#ifdef KTEST #include "../kselftest.h" +#else +#include "kselftest_stubs.h" +#endif #define DELAY 2 #define USECS_PER_SEC 1000000 -- 2.11.0