]> www.infradead.org Git - users/willy/xarray.git/commitdiff
selftests: Make test_harness.h more generally available
authorMickaël Salaün <mic@digikod.net>
Fri, 26 May 2017 18:43:56 +0000 (20:43 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 7 Jun 2017 16:07:21 +0000 (10:07 -0600)
The seccomp/test_harness.h file contains useful helpers to build tests.
Moving it to the selftest directory should benefit to other test
components.

Keep seccomp maintainers for this file.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Will Drewry <wad@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Shuah Khan <shuah@kernel.org>
Link: https://lkml.kernel.org/r/CAGXu5j+8CVz8vL51DRYXqOY=xc3zuKFf=PTENe88XYHzFYidUQ@mail.gmail.com
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
MAINTAINERS
tools/testing/selftests/kselftest_harness.h [moved from tools/testing/selftests/seccomp/test_harness.h with 100% similarity]
tools/testing/selftests/seccomp/seccomp_bpf.c

index 7a28acd7f525ce7c918015be587e1a7bcfab17b9..85bafa901e4b7dfc3416c84379dc47f847e2d61b 100644 (file)
@@ -11495,6 +11495,7 @@ F:      kernel/seccomp.c
 F:     include/uapi/linux/seccomp.h
 F:     include/linux/seccomp.h
 F:     tools/testing/selftests/seccomp/*
+F:     tools/testing/selftests/kselftest_harness.h
 K:     \bsecure_computing
 K:     \bTIF_SECCOMP\b
 
index 03f1fa495d743f4bb9032486eb42f201a33bc01d..7ba94efb24fdd6a162337dab620e5e0d2938ec0b 100644 (file)
@@ -37,7 +37,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 
-#include "test_harness.h"
+#include "../kselftest_harness.h"
 
 #ifndef PR_SET_PTRACER
 # define PR_SET_PTRACER 0x59616d61