Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705871
| From | Shuah Khan <shuah@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] selftests: futex: convert test to use ksft TAP13 framework |
| Date | 2017-08-07 23:20 +0200 |
| Message-ID | <ubXBo-5Yw-35@gated-at.bofh.it> (permalink) |
| References | <uaVrX-5Ua-1@gated-at.bofh.it> <ub91U-6H1-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/05/2017 09:15 AM, Stafford Horne wrote:
> On Fri, Aug 04, 2017 at 06:46:50PM -0600, Shuah Khan wrote:
>> Convert test to use ksft TAP13 framework.
>
>
>> --- a/tools/testing/selftests/futex/include/logging.h
>> +++ b/tools/testing/selftests/futex/include/logging.h
>> @@ -109,22 +109,20 @@ void log_verbosity(int level)
>> */
>> void print_result(const char *test_name, int ret)
>> {
>> - const char *result = "Unknown return code";
>> -
>> switch (ret) {
>> case RET_PASS:
>> - ksft_inc_pass_cnt();
>> - result = PASS;
>> - break;
>> + ksft_test_result_pass("%s\n", test_name);
>> + ksft_print_cnts();
>> + return;
>> case RET_ERROR:
>> - result = ERROR;
>> - break;
>> + ksft_test_result_error("%s\n", test_name);
>> + ksft_print_cnts();
>> + return;
>
> This looks ok to me, but this function `ksft_test_result_error` was added
> in another patch you just sent, it was a bit hard to review.
thanks for the review.
>
> If you need to make and updates, could you please send a series next?
I should have sent it as a series in the first place. Sorry about that.
>
> -Stafford
>
>> case RET_FAIL:
>> - ksft_inc_fail_cnt();
>> - result = FAIL;
>> - break;
>> + ksft_test_result_fail("%s\n", test_name);
>> + ksft_print_cnts();
>> + return;
>> }
>> - printf("selftests: %s [%s]\n", test_name, result);
>
>
>
thanks,
-- Shuah
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] selftests: futex: convert test to use ksft TAP13 framework Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-05 02:50 +0200
Re: [PATCH] selftests: futex: convert test to use ksft TAP13 framework Stafford Horne <shorne@gmail.com> - 2017-08-05 17:20 +0200
Re: [PATCH] selftests: futex: convert test to use ksft TAP13 framework Shuah Khan <shuah@kernel.org> - 2017-08-07 23:20 +0200
csiph-web