From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755236AbdD3M0o (ORCPT ); Sun, 30 Apr 2017 08:26:44 -0400 Received: from smtp-sh.infomaniak.ch ([128.65.195.4]:56871 "EHLO smtp-sh.infomaniak.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753434AbdD3M0f (ORCPT ); Sun, 30 Apr 2017 08:26:35 -0400 From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Andy Lutomirski , Kees Cook , Shuah Khan , Will Drewry , linux-kselftest@vger.kernel.org Subject: [PATCH v1] selftests: Make test_harness.h more generally available Date: Sun, 30 Apr 2017 14:26:19 +0200 Message-Id: <20170430122619.31407-1-mic@digikod.net> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.6.0.2.8 X-Antivirus-Code: 0x100000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The seccomp/test_harness.h file contains useful helpers to build tests. Moving it to the selftest directory should benefit to other test components. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Kees Cook Cc: Shuah Khan Cc: Will Drewry Link: https://lkml.kernel.org/r/CAGXu5j+8CVz8vL51DRYXqOY=xc3zuKFf=PTENe88XYHzFYidUQ@mail.gmail.com --- tools/testing/selftests/seccomp/seccomp_bpf.c | 2 +- tools/testing/selftests/{seccomp => }/test_harness.h | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tools/testing/selftests/{seccomp => }/test_harness.h (100%) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 03f1fa495d74..d7095ff58e72 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -37,7 +37,7 @@ #include #include -#include "test_harness.h" +#include "../test_harness.h" #ifndef PR_SET_PTRACER # define PR_SET_PTRACER 0x59616d61 diff --git a/tools/testing/selftests/seccomp/test_harness.h b/tools/testing/selftests/test_harness.h similarity index 100% rename from tools/testing/selftests/seccomp/test_harness.h rename to tools/testing/selftests/test_harness.h -- 2.11.0