Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case (v2)

2015-03-13 Thread Shuah Khan
On 03/13/2015 09:55 AM, Andrey Vagin wrote: > Currently this test always returs zero code and a child process returns > non-zero code only if the last testcase failed. > > v2: don't forget to return smth from ksft_exit() Please check patch subject. It is phrased: [PATCH v2] selftests/kcmp: exit w

[PATCH] selftests/kcmp: exit with non-zero code in a fail case (v2)

2015-03-13 Thread Andrey Vagin
Currently this test always returs zero code and a child process returns non-zero code only if the last testcase failed. v2: don't forget to return smth from ksft_exit() Cc: Michael Ellerman Cc: Shuah Khan Cc: Cyrill Gorcunov Signed-off-by: Andrey Vagin --- tools/testing/selftests/kcmp/kcmp_t

Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Andrey Wagin
2015-03-13 13:37 GMT+03:00 Michael Ellerman : > On Fri, 2015-03-13 at 12:27 +0300, Andrey Vagin wrote: >> diff --git a/tools/testing/selftests/kselftest.h >> b/tools/testing/selftests/kselftest.h >> index 572c888..a0ec8b8 100644 >> --- a/tools/testing/selftests/kselftest.h >> +++ b/tools/testing/s

Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Michael Ellerman
On Fri, 2015-03-13 at 12:27 +0300, Andrey Vagin wrote: > diff --git a/tools/testing/selftests/kselftest.h > b/tools/testing/selftests/kselftest.h > index 572c888..a0ec8b8 100644 > --- a/tools/testing/selftests/kselftest.h > +++ b/tools/testing/selftests/kselftest.h > @@ -58,5 +58,17 @@ static inli

[PATCH] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Andrey Vagin
Currently this test always returs zero code and a child process returns non-zero code only if the last testcase failed. Cc: Shuah Khan Cc: Cyrill Gorcunov Signed-off-by: Andrey Vagin --- tools/testing/selftests/kcmp/kcmp_test.c | 16 ++-- tools/testing/selftests/kselftest.h |