]> 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>
Thu, 25 Oct 2012 01:15:25 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 05:50:03 +0000 (16:50 +1100)
commit7bfdfa66f24a58d74d900656cc02723984694915
treeb8b7d5aa08db31a8a2bfa693722ac3bc6be599bf
parentb0d652186154b7730e09998cb11db60b173a12d4
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