]> 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>
Fri, 9 Nov 2012 03:05:17 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:28 +0000 (15:55 +1100)
commit13e59e281cbca301d0711d9415789725ee46bdb0
tree4b76425f501edd538decb39ac077b9586487877a
parent2877e2eeee5b513a16464cdb00384c2ccd364ec7
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