mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
lio_test: Specify a mode with O_CREAT
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2884918c73
commit
3a0976dea3
@ -223,7 +223,7 @@ ATF_TC_BODY(lio_listio_opcodes, tc)
|
||||
char buffer[6];
|
||||
int fd;
|
||||
|
||||
fd = open("testfile", O_CREAT | O_RDWR);
|
||||
fd = open("testfile", O_CREAT | O_RDWR, 0666);
|
||||
ATF_REQUIRE_MSG(fd >= 0, "open: %s", strerror(errno));
|
||||
|
||||
/* We start with numbers in a file and letters in memory... */
|
||||
@ -302,7 +302,7 @@ ATF_TC_BODY(lio_listio_invalid_opcode, tc)
|
||||
struct aiocb *list[] = {&sync_cb, &mlock_cb};
|
||||
int fd;
|
||||
|
||||
fd = open("testfile", O_CREAT | O_RDWR);
|
||||
fd = open("testfile", O_CREAT | O_RDWR, 0666);
|
||||
ATF_REQUIRE_MSG(fd >= 0, "open: %s", strerror(errno));
|
||||
|
||||
bzero(&sync_cb, sizeof(sync_cb));
|
||||
|
Loading…
Reference in New Issue
Block a user