From: Michael Ellerman Date: Tue, 1 Nov 2016 04:01:18 +0000 (+1100) Subject: selftests/powerpc: Fail load_unaligned_zeropad on miscompare X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=997e200182347d2cc7e37bc43eaafe249b4571b9;p=linux-beck.git selftests/powerpc: Fail load_unaligned_zeropad on miscompare If the result returned by load_unaligned_zeropad() doesn't match what we expect we should fail the test! Signed-off-by: Michael Ellerman --- diff --git a/tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c b/tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c index cf7a4a114a90..cd7af4e1b65a 100644 --- a/tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c +++ b/tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c @@ -118,8 +118,10 @@ static int do_one_test(char *p, int page_offset) got = load_unaligned_zeropad(p); - if (should != got) + if (should != got) { printf("offset %u load_unaligned_zeropad returned 0x%lx, should be 0x%lx\n", page_offset, got, should); + return 1; + } return 0; }