* [LTP] [PATCH] Don't create the message queue in mq_open01 when the test specifies O_CREAT flag
@ 2009-06-08 11:22 Jiri Palecek
2009-06-09 18:25 ` Subrata Modak
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Palecek @ 2009-06-08 11:22 UTC (permalink / raw)
To: ltp-list
The tests need to create the message queue themselves to specify the
creation attributes
Signed-off-by: Jiri Palecek <jpalecek@web.de>
---
testcases/kernel/syscalls/mq_open/mq_open01.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/syscalls/mq_open/mq_open01.c b/testcases/kernel/syscalls/mq_open/mq_open01.c
index 205de66..f9c2f08 100644
--- a/testcases/kernel/syscalls/mq_open/mq_open01.c
+++ b/testcases/kernel/syscalls/mq_open/mq_open01.c
@@ -315,7 +315,7 @@ static int do_test(struct test_case *tc)
* Execute system call
*/
- if (tc->ttype != NO_SPACE) {
+ if (tc->ttype != NO_SPACE && !(tc->oflag & O_CREAT)) {
errno = 0;
TEST(sys_ret = mq_open(QUEUE_NAME, O_CREAT|O_EXCL|O_RDWR, S_IRWXU, NULL));
sys_errno = errno;
--
1.6.2.4
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] Don't create the message queue in mq_open01 when the test specifies O_CREAT flag
2009-06-08 11:22 [LTP] [PATCH] Don't create the message queue in mq_open01 when the test specifies O_CREAT flag Jiri Palecek
@ 2009-06-09 18:25 ` Subrata Modak
0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-06-09 18:25 UTC (permalink / raw)
To: Jiri Palecek; +Cc: ltp-list
On Mon, 2009-06-08 at 13:22 +0200, Jiri Palecek wrote:
> The tests need to create the message queue themselves to specify the
> creation attributes
>
> Signed-off-by: Jiri Palecek <jpalecek@web.de>
Thanks.
Regards--
Subrata
> ---
> testcases/kernel/syscalls/mq_open/mq_open01.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/mq_open/mq_open01.c b/testcases/kernel/syscalls/mq_open/mq_open01.c
> index 205de66..f9c2f08 100644
> --- a/testcases/kernel/syscalls/mq_open/mq_open01.c
> +++ b/testcases/kernel/syscalls/mq_open/mq_open01.c
> @@ -315,7 +315,7 @@ static int do_test(struct test_case *tc)
> * Execute system call
> */
>
> - if (tc->ttype != NO_SPACE) {
> + if (tc->ttype != NO_SPACE && !(tc->oflag & O_CREAT)) {
> errno = 0;
> TEST(sys_ret = mq_open(QUEUE_NAME, O_CREAT|O_EXCL|O_RDWR, S_IRWXU, NULL));
> sys_errno = errno;
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-09 18:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 11:22 [LTP] [PATCH] Don't create the message queue in mq_open01 when the test specifies O_CREAT flag Jiri Palecek
2009-06-09 18:25 ` Subrata Modak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox