linux_dsm_epyc7002/tools/testing/selftests/powerpc
Sachin Sant a6d8a21596 selftest/powerpc: Fix false failures for skipped tests
Tests under alignment subdirectory are skipped when executed on previous
generation hardware, but harness still marks them as failed.

  test: test_copy_unaligned
  tags: git_version:unknown
  [SKIP] Test skipped on line 26
  skip: test_copy_unaligned
  selftests: copy_unaligned [FAIL]

The MAGIC_SKIP_RETURN_VALUE value assigned to rc variable is retained till
the program exit which causes the test to be marked as failed.

This patch resets the value before returning to the main() routine.
With this patch the test o/p is as follows:

  test: test_copy_unaligned
  tags: git_version:unknown
  [SKIP] Test skipped on line 26
  skip: test_copy_unaligned
  selftests: copy_unaligned [PASS]

Signed-off-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-03-03 11:24:50 +11:00
..
alignment selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
benchmarks selftests/powerpc: Fix remaining fallout from recent changes 2017-02-14 08:02:27 -07:00
context_switch selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
copyloops selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
dscr selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
include selftests/powerpc: Add ptrace tests for GPR/FPR registers 2016-11-17 17:11:48 +11:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math selftests/powerpc: Fix remaining fallout from recent changes 2017-02-14 08:02:27 -07:00
mm selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
pmu linux-kselftest-4.11-rc1 2017-02-25 15:32:53 -08:00
primitives selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
ptrace selftests/powerpc: Add ptrace tests for TM SPR registers 2016-11-17 17:11:52 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal selftests/powerpc: Move shared headers into new include dir 2016-11-17 17:11:47 +11:00
stringloops selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
switch_endian selftests: enable O and KBUILD_OUTPUT 2017-01-05 13:42:22 -07:00
syscalls selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
tm selftests/powerpc: Fix remaining fallout from recent changes 2017-02-14 08:02:27 -07:00
vphn selftests: remove duplicated all and clean target 2017-01-05 13:41:35 -07:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-03-03 11:24:50 +11:00
Makefile selftests/powerpc: Fix the clean rule since recent changes 2017-02-14 08:02:20 -07:00
utils.c selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00