diff options
author | Sachin Sant <sachinp@linux.vnet.ibm.com> | 2017-02-26 09:08:39 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-03 03:24:50 +0300 |
commit | a6d8a21596df041f36f4c2ccc260c459e3e851f1 (patch) | |
tree | c0e5c498611999ceefc9c7e18c54a87c51f55814 /arch | |
parent | 424f8acd328a111319ae30bf384e5dfb9bc8f8cb (diff) | |
download | linux-a6d8a21596df041f36f4c2ccc260c459e3e851f1.tar.xz |
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions