Commit 997e2001 authored by Michael Ellerman's avatar Michael Ellerman

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 06236f4e
...@@ -118,8 +118,10 @@ static int do_one_test(char *p, int page_offset) ...@@ -118,8 +118,10 @@ static int do_one_test(char *p, int page_offset)
got = load_unaligned_zeropad(p); 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); printf("offset %u load_unaligned_zeropad returned 0x%lx, should be 0x%lx\n", page_offset, got, should);
return 1;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment