]> git.karo-electronics.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>
Thu, 8 Nov 2012 04:09:02 +0000 (15:09 +1100)
commitdb3846344ad572229d8bcc5fc18004ee2ac3d438
treedaa93b13c09eb7b25187c799e711e326a39b9857
parentb4eccc12cc47029f3d94c430003c67e90b818785
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