From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/fchmodat: fix test, don't use test current directory
Date: Tue, 2 Feb 2016 17:37:20 +0300 [thread overview]
Message-ID: <56B0BF20.3070007@oracle.com> (raw)
In-Reply-To: <20160202141415.GB19199@rei.lan>
On 02/02/2016 05:14 PM, Cyril Hrubis wrote:
> Hi!
>> @@ -73,6 +73,7 @@ int main(int ac, char **av)
>> {
>> int lc;
>> int i;
>> + size_t k;
>>
>> /* Disable test if the version of the kernel is less than 2.6.16 */
>> if ((tst_kvercmp(2, 6, 16)) < 0) {
>> @@ -104,6 +105,12 @@ int main(int ac, char **av)
>> }
>> }
>>
>> + for (k = 0; k < ARRAY_SIZE(tst_fds); ++k)
>> + SAFE_CLOSE(cleanup, tst_fds[k]);
>> +
>> + SAFE_UNLINK(cleanup, testfile);
>> + SAFE_UNLINK(cleanup, testfile3);
>> + SAFE_RMDIR(cleanup, pathname);
> Is there any reason why we call the setup_every_copy() for each
> iteration instead of doing it once in the setup()?
Hard to say, it seems this test never used with '-i' parameter.
I think we can change the test-case and move setup_every_copy()
to setup(), as the only difference with permissions will be that the
test directory
mode won't be changed from 0700 -> 0600 on every iteration.
Thanks,
Alexey
>
>
> Otherwise the patch looks good.
>
prev parent reply other threads:[~2016-02-02 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 10:14 [LTP] [PATCH] syscalls/fchmodat: fix test, don't use test current directory Alexey Kodanev
2016-02-02 14:14 ` Cyril Hrubis
2016-02-02 14:37 ` Alexey Kodanev [this message]
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=56B0BF20.3070007@oracle.com \
--to=alexey.kodanev@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.