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 <mpe@ellerman.id.au>
This commit is contained in:
Michael Ellerman 2016-11-01 15:01:18 +11:00
parent 06236f4efb
commit 997e200182

View File

@ -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;
}