From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/access01: Set umask value before run case
Date: Fri, 22 Sep 2017 08:28:46 -0400 (EDT) [thread overview]
Message-ID: <875562.19773227.1506083326749.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1505826277-33027-1-git-send-email-cuibixuan@huawei.com>
----- Original Message -----
> The case will fail when set the umask to 0077 acquiescently in system.
> Because the value of actual mode is 'set value' & ~'default value
> for the umask' when create dir.
> So add 'umask(0022)' in setup().
We do umask(0) in ltp-pan:
# umask
0077
# /opt/ltp/runltp -p -d results -l RUNTEST.log -o RUNTEST.run.log -s access01 -f syscalls > /dev/null
# cat /opt/ltp/results/RUNTEST.log
Test Start Time: Fri Sep 22 14:24:28 2017
-----------------------------------------
Testcase Result Exit Value
-------- ------ ----------
access01 PASS 0
I'm aware that running tests outside of ltp-pan is sometimes useful,
so maybe we could add this to a library rather than in each test
separately? What do you think Cyril?
Regards,
Jan
next prev parent reply other threads:[~2017-09-22 12:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 13:04 [LTP] [PATCH] syscalls/access01: Set umask value before run case Bixuan Cui
2017-09-22 12:28 ` Jan Stancek [this message]
2017-09-25 2:34 ` Bixuan Cui
2017-09-25 12:31 ` Cyril Hrubis
2017-10-03 6:42 ` Jan Stancek
2017-10-03 15:52 ` Cyril Hrubis
2017-10-03 15:52 ` Cyril Hrubis
2017-10-09 5:27 ` Bixuan Cui
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=875562.19773227.1506083326749.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.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.