public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] syscalls/prctl02: Rewrite to the new library
Date: Fri, 18 May 2018 09:30:39 +0800	[thread overview]
Message-ID: <5AFE2CBF.4010909@cn.fujitsu.com> (raw)
In-Reply-To: <20180517152329.3h7zuuoatcbtklbl@dell5510>

Hi Petr,

Thanks for your comment.
I will send v2 patch set as you suggested.

Thanks,
Xiao Yang
On 2018/05/17 23:23, Petr Vorel wrote:
> Hi Xiao,
>
> LGTM, with 2 very minor issues.
> If you're ok with them I can change it before merging.
>
>> Signed-off-by: Xiao Yang<yangx.jy@cn.fujitsu.com>
> Reviewed-by: Petr Vorel<pvorel@suse.cz>
>> ---
>>   testcases/kernel/syscalls/prctl/prctl02.c | 203 ++++++------------------------
> ...
>> + * This program is free software: you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License as published by
>> + * the Free Software Foundation, either version 2 of the License, or
>> + * (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program. If not, see<http://www.gnu.org/licenses/>.
>> + */
> Again, if you want, you can use SPDX license identifier (it's much shorter):
> // SPDX-License-Identifier: GPL-2.0-or-later
>
>> -struct test_cases_t {
>> +static struct test_cases_t {
> Using tcase would be shorter.
>
> ...
>> +	if (TEST_ERRNO == tc->exp_errno) {
> Can you please swap these to?
> if (tc->exp_errno == TEST_ERRNO) {
>> +		tst_res(TPASS | TTERRNO, "prctl() failed as expected");
>> +	} else {
>> +		tst_res(TPASS | TTERRNO, "prctl() failed unexpectedly, "
>> +			"expected %s", tst_strerrno(tc->exp_errno));
>> +	}
>>   }
> Kind regards,
> Petr
>
>
> .
>




  parent reply	other threads:[~2018-05-18  1:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19  2:50 [LTP] [PATCH 1/2] syscalls/prctl01: Rewrite to the new library Xiao Yang
2018-04-19  2:50 ` [LTP] [PATCH 2/2] syscalls/prctl02: " Xiao Yang
2018-05-17 15:23   ` Petr Vorel
2018-05-18  1:30     ` [LTP] [PATCH v2 1/2] syscalls/prctl01: " Xiao Yang
2018-05-18  1:30       ` [LTP] [PATCH v2 2/2] syscalls/prctl02: " Xiao Yang
2018-05-18 15:23         ` Petr Vorel
2018-05-18 15:21       ` [LTP] [PATCH v2 1/2] syscalls/prctl01: " Petr Vorel
2018-05-18  1:30     ` Xiao Yang [this message]
2018-05-17 15:10 ` [LTP] [PATCH " Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5AFE2CBF.4010909@cn.fujitsu.com \
    --to=yangx.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox