Don't create the message queue in mq_open01 when the test specifies O_CREAT flag
PATCH 1/1 Don't create the message queue in mq_open01 when the test specifies O_CREAT flag
The tests need to create the message queue themselves to specify the creation attributes
--- testcases/kernel/syscalls/mq_open/mq_open01.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/kernel/syscalls/mq_open/mq_open01.c +1 -1
@@ -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;
Signature · 13 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 4 lines · Jiri Palecek
The tests need to create the message queue themselves to specify the
creation attributesSigned-off-by Jiri Palecek <[email protected]>
Thanks.
Regards--
Subrata
Quoted 9 lines
--- testcases/kernel/syscalls/mq_open/mq_open01.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)testcases/kernel/syscalls/mq_open/mq_open01.c +0
-0
testcases/kernel/syscalls/mq_open/mq_open01.c static int do_test(struct test_case *tc) · line 321
Quoted 8 lines
testcases/kernel/syscalls/mq_open/mq_open01.c +1
-1@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list