exynos-linux-stable/tools/testing/selftests/powerpc
Sachin Sant cd662c8e51 selftest/powerpc: Fix false failures for skipped tests
[ Upstream commit a6d8a21596df041f36f4c2ccc260c459e3e851f1 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-14 09:28:17 +01:00
..
alignment selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
benchmarks selftests/powerpc: Import Anton's mmap & futex micro benchmarks 2016-07-05 23:49:50 +10:00
context_switch selftests/powerpc: Test cp_abort during context switch 2016-05-11 21:54:01 +10:00
copyloops selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes 2016-10-06 22:26:42 +11:00
dscr powerpc: Fix DSCR inheritance over fork() 2015-12-10 21:11:13 +11:00
math selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
mm selftests/powerpc: Add a test for PROT_SAO 2016-07-14 20:26:25 +10:00
pmu selftest/powerpc: Wrong PMC initialized in pmc56_overflow test 2017-01-26 08:24:45 +01:00
primitives selftests/powerpc: Fix build failure of load_unaligned_zeropad test 2015-10-13 15:08:37 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
stringloops selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes 2016-10-06 22:26:42 +11:00
switch_endian selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
syscalls selftests/powerpc: Add tests of unmuxed IPC calls 2015-10-15 20:32:03 +11:00
tm selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
vphn selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
basic_asm.h selftests/powerpc: Test the preservation of FPU and VMX regs across syscall 2016-03-02 23:34:46 +11:00
fpu_asm.h selftests/powerpc: Rework FPU stack placement macros and move to header file 2016-10-04 20:10:11 +11:00
gpr_asm.h selftests/powerpc: Introduce GPR asm helper header file 2016-10-04 20:10:12 +11:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-12-14 09:28:17 +01:00
instructions.h selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
Makefile selftests/powerpc: Check that signals always get delivered 2016-10-04 20:26:36 +11:00
reg.h selftests/powerpc: Load Monitor Register Tests 2016-06-21 15:30:50 +10:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.c selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00
utils.h selftests/powerpc: Allow tests to extend their kill timeout 2016-10-04 20:10:13 +11:00
vmx_asm.h selftests/powerpc: Move VMX stack frame macros to header file 2016-10-04 20:10:12 +11:00
vsx_asm.h selftests/powerpc: Check for VSX preservation across userspace preemption 2016-10-04 20:10:09 +11:00