linux_dsm_epyc7002/tools/testing/selftests/powerpc/ptrace
Breno Leitao eafcd8e3fb selftests/powerpc: Skip test instead of failing
Current core-pkey selftest fails if the test runs without privileges to
write into the core pattern file (/proc/sys/kernel/core_pattern). This
causes the test to fail and give the impression that the subsystem being
tested is broken, when, in fact, the test is being executed without the
proper privileges. This is the current error:

	test: core_pkey
	tags: git_version:v4.19-3-g9e3363be9bce-dirty
	Error writing to core_pattern file: Permission denied
	failure: core_pkey

This patch simply skips this test if it runs without the proper privileges,
avoiding this undesired failure.

CC: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
CC: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-11-25 17:11:22 +11:00
..
.gitignore selftests/powerpc: Add perf breakpoint test 2018-06-03 21:16:44 +10:00
child.h selftests/powerpc: Add ptrace tests for Protection Key registers 2018-05-28 18:46:35 +10:00
core-pkey.c selftests/powerpc: Skip test instead of failing 2018-11-25 17:11:22 +11:00
Makefile selftests/powerpc/ptrace: Fix out-of-tree build 2018-10-31 23:56:19 +11:00
perf-hwbreak.c selftests/powerpc: Add perf breakpoint test 2018-06-03 21:16:44 +10:00
ptrace-gpr.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-gpr.h selftests/powerpc: Add ptrace tests for GPR/FPR registers 2016-11-17 17:11:48 +11:00
ptrace-hwbreak.c selftests/powerpc: Add ptrace hw breakpoint test 2018-05-25 00:08:25 +10:00
ptrace-pkey.c selftests/powerpc: Fix ptrace-pkey for default execute permission change 2018-07-24 22:03:14 +10:00
ptrace-syscall.c selftests/powerpc: New PTRACE_SYSEMU test 2018-10-03 15:40:04 +10:00
ptrace-tar.c selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers 2016-11-17 17:11:49 +11:00
ptrace-tar.h selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers 2016-11-17 17:11:49 +11:00
ptrace-tm-gpr.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-tm-spd-gpr.c selftests/powerpc: Fix ptrace tm failure 2018-10-26 21:58:58 +11:00
ptrace-tm-spd-tar.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-tm-spd-vsx.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-tm-spr.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-tm-tar.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-tm-vsx.c selftests/powerpc: Allocate base registers 2018-11-25 17:11:21 +11:00
ptrace-vsx.c selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
ptrace-vsx.h selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
ptrace.h selftests/powerpc: Add ptrace tests for Protection Key registers 2018-05-28 18:46:35 +10:00