From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] Access02 and use of system() library function
Date: Fri, 31 Mar 2017 13:29:35 +0200 [thread overview]
Message-ID: <20170331112935.GD17943@rei.lan> (raw)
In-Reply-To: <c5d9de57-9847-1471-210f-b4a053237ab1@gezedo.com>
Hi!
> Yes it does, and the test passes.
I've pushed the fix.
> IMHO returning explicitely 0 (exit 0) will make the test even more
> robust, because 0 is the value returned by the system() library
> function call, and expected by the test.
The POSIX specification requires the sh to exit with zero if the input
file is empty or consits solely of blank lines and comments. So I would
say that file with just a shebang is robust enough.
--
Cyril Hrubis
chrubis@suse.cz
prev parent reply other threads:[~2017-03-31 11:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 14:04 [LTP] Access02 and use of system() library function Laurent GONZALEZ
2017-03-20 11:11 ` Cyril Hrubis
2017-03-20 12:22 ` Laurent GONZALEZ
2017-03-30 14:19 ` Cyril Hrubis
2017-03-31 7:58 ` Laurent GONZALEZ
2017-03-31 11:29 ` Cyril Hrubis [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=20170331112935.GD17943@rei.lan \
--to=chrubis@suse.cz \
--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