[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-cvs
Subject: [Ltp-cvs] ltp/testcases/kernel/syscalls/open open04.c,1.6,1.7
From: Subrata <subrata_modak () users ! sourceforge ! net>
Date: 2008-01-21 11:16:19
Message-ID: E1JGue4-0001bv-7w () mail ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/open
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27456/ltp/testcases/kernel/syscalls/open
Modified Files:
open04.c
Log Message:
Fixing missing argument for open() function when O_CREAT is in the flag, by, Yi Xu <yxu@suse.de>
Index: open04.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/open/open04.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** open04.c 14 Nov 2007 15:27:56 -0000 1.6
--- open04.c 21 Jan 2008 11:16:16 -0000 1.7
***************
*** 88,92 ****
Tst_count = 0;
! TEST(open(fname, O_RDWR | O_CREAT));
if (TEST_RETURN != -1) {
--- 88,92 ----
Tst_count = 0;
! TEST(open(fname, O_RDWR | O_CREAT, 0777));
if (TEST_RETURN != -1) {
***************
*** 130,134 ****
sprintf(fname, "open04.%d", mypid);
! if ((first = fd = open(fname, O_RDWR | O_CREAT)) == -1) {
tst_brkm(TBROK, cleanup, "Cannot open first file");
}
--- 130,134 ----
sprintf(fname, "open04.%d", mypid);
! if ((first = fd = open(fname, O_RDWR | O_CREAT, 0777)) == -1) {
tst_brkm(TBROK, cleanup, "Cannot open first file");
}
***************
*** 145,149 ****
for (ifile = first; ifile <= nfile; ifile++) {
sprintf(fname, "open04.%d.%d", ifile, mypid);
! if ((fd = open(fname, O_RDWR | O_CREAT)) == -1) {
if (errno != EMFILE) {
tst_brkm(TBROK, cleanup, "Expected EMFILE got "
--- 145,149 ----
for (ifile = first; ifile <= nfile; ifile++) {
sprintf(fname, "open04.%d.%d", ifile, mypid);
! if ((fd = open(fname, O_RDWR | O_CREAT, 0777)) == -1) {
if (errno != EMFILE) {
tst_brkm(TBROK, cleanup, "Expected EMFILE got "
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic