]> 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, 29 Nov 2012 03:19:17 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:57 +0000 (16:23 +1100)
commitb58d9c8f860e3b175a3f55e07c51225a19e4a017
treefb6a58d4bab58645fd01527391c09382a16a2b95
parent66925c77c512cda4763715e7647fd76ca31f7df3
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