From: chrubis@suse.cz
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v3 2/3] setns: add new syscall test setns01
Date: Mon, 18 Feb 2013 19:17:36 +0100 [thread overview]
Message-ID: <20130218181734.GA28740@rei.Home> (raw)
In-Reply-To: <a5da91845477cb0ddbd59d37eb328175dac90698.1361196214.git.jstancek@redhat.com>
Hi!
> +static void setup1(struct testcase_t *t, int i)
> +{
> + t->ns_type = ns_types[i];
> + t->fd = open("dummy", O_CREAT);
While I tried to compile this code, I've got error as open with O_CREAT
is required to pass the mode.
> + if (t->fd == -1)
> + tst_brkm(TFAIL|TERRNO, cleanup, "setup1:open failed");
> + unlink("dummy");
> +}
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-02-18 18:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-18 14:05 [LTP] [PATCH v3 0/3] add new syscall test for setns(2) Jan Stancek
2013-02-18 14:05 ` [LTP] [PATCH v3 1/3] setns: setup directory at kernel/syscalls/setns Jan Stancek
2013-02-19 2:14 ` Wanlong Gao
2013-02-18 14:05 ` [LTP] [PATCH v3 2/3] setns: add new syscall test setns01 Jan Stancek
2013-02-18 18:17 ` chrubis [this message]
2013-02-18 14:05 ` [LTP] [PATCH v3 3/3] setns: add new syscall test setns02 Jan Stancek
2013-02-19 2:16 ` Wanlong Gao
[not found] <5122E05A.6010507@cn.fujitsu.com>
[not found] ` <1360829341.5171174.1361259703806.JavaMail.root@redhat.com>
2013-02-19 10:01 ` [LTP] [PATCH v3 2/3] setns: add new syscall test setns01 chrubis
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=20130218181734.GA28740@rei.Home \
--to=chrubis@suse.cz \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/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