]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tools/testing/selftests/kcmp/kcmp_test.c: print reason for failure in kcmp_test
authorDave Jones <davej@redhat.com>
Sat, 3 Nov 2012 00:43:12 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:38 +0000 (15:15 +1100)
commit5c3773301cee36944792acbb7fbf6130abc19995
tree3396086b81ef716d2abf52c57f627445b27b0731
parent7cc2bb06dbf5d55ace751a23d3c1aa494f7ba65b
tools/testing/selftests/kcmp/kcmp_test.c: print reason for failure in kcmp_test

I was curious why sys_kcmp wasn't working, which led me to the testcase.
It turned out I hadn't enabled CHECKPOINT_RESTORE in the kernel I was
testing.  Add a decoding of errno to the testcase to make that obvious.

Signed-off-by: Dave Jones <davej@redhat.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/kcmp/kcmp_test.c