linux-uconsole/tools/testing/selftests/powerpc
Sachin Sant 23f9e84482 selftest/powerpc: Fix false failures for skipped tests
[ Upstream commit a6d8a21596 ]

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-16 10:33:51 +01:00
..
benchmarks powerpc/selftest: Add gettimeofday() benchmark 2015-10-01 16:52:02 +10:00
copyloops powerpc updates for 4.1 2015-04-16 13:53:32 -05:00
dscr selftests/powerpc: Add gitignore file for the new DSCR tests 2015-06-07 19:38:20 +10:00
mm selftests/powerpc: Install tempfile so the subpage_prot_file test works 2015-08-17 18:28:49 +10:00
pmu selftest/powerpc: Wrong PMC initialized in pmc56_overflow test 2017-01-26 08:23:50 +01:00
primitives selftests/powerpc: Fix build failure of load_unaligned_zeropad test 2015-10-13 15:08:37 +11:00
stringloops selftests: Add install support for the powerpc tests 2015-03-19 12:38:51 -06: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: Allow the tm-syscall test to build with old headers 2015-10-15 20:32:04 +11:00
vphn selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-12-16 10:33:51 +01:00
Makefile selftests/powerpc: Sort the list of SUB_DIRS to build 2015-10-15 20:32:03 +11:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.h selftests/powerpc: Move get_auxv_entry() to harness.c 2015-04-11 20:49:20 +10:00