summaryrefslogtreecommitdiffstats
path: root/tests/sys
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2018-03-01 06:54:03 +0000
committereadler <eadler@FreeBSD.org>2018-03-01 06:54:03 +0000
commit284da48258e1cfe1e3f801d71549587f142f7f06 (patch)
tree1cae1aea75e2916adb9416c8d1552fb517b309c0 /tests/sys
parent97c56efacaa1bccf371d2eba4ab1e499fdf1865b (diff)
downloadFreeBSD-src-284da48258e1cfe1e3f801d71549587f142f7f06.zip
FreeBSD-src-284da48258e1cfe1e3f801d71549587f142f7f06.tar.gz
MFC r319590:
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/aio/aio_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sys/aio/aio_test.c b/tests/sys/aio/aio_test.c
index 862a7b7..eb28218 100644
--- a/tests/sys/aio/aio_test.c
+++ b/tests/sys/aio/aio_test.c
@@ -336,7 +336,7 @@ aio_file_test(completion comp, struct sigevent *sev)
ATF_REQUIRE_KERNEL_MODULE("aio");
ATF_REQUIRE_UNSAFE_AIO();
- fd = open(FILE_PATHNAME, O_RDWR | O_CREAT);
+ fd = open(FILE_PATHNAME, O_RDWR | O_CREAT, 0600);
ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
aio_context_init(&ac, fd, fd, FILE_LEN);
@@ -806,7 +806,7 @@ ATF_TC_BODY(aio_large_read_test, tc)
len = INT_MAX;
#endif
- fd = open(FILE_PATHNAME, O_RDWR | O_CREAT);
+ fd = open(FILE_PATHNAME, O_RDWR | O_CREAT, 0600);
ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
unlink(FILE_PATHNAME);
@@ -1060,7 +1060,7 @@ ATF_TC_BODY(aio_fsync_test, tc)
ATF_REQUIRE_KERNEL_MODULE("aio");
ATF_REQUIRE_UNSAFE_AIO();
- fd = open(FILE_PATHNAME, O_RDWR | O_CREAT);
+ fd = open(FILE_PATHNAME, O_RDWR | O_CREAT, 0600);
ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
unlink(FILE_PATHNAME);
OpenPOWER on IntegriCloud