Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2017 21:39:38 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319590 - head/tests/sys/aio
Message-ID:  <201706042139.v54LdcxW027238@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Jun  4 21:39:37 2017
New Revision: 319590
URL: https://svnweb.freebsd.org/changeset/base/319590

Log:
  tests/sys/aio: Add missing mode to open() calls with O_CREAT.

Modified:
  head/tests/sys/aio/aio_test.c

Modified: head/tests/sys/aio/aio_test.c
==============================================================================
--- head/tests/sys/aio/aio_test.c	Sun Jun  4 21:28:52 2017	(r319589)
+++ head/tests/sys/aio/aio_test.c	Sun Jun  4 21:39:37 2017	(r319590)
@@ -385,7 +385,7 @@ aio_file_test(completion comp)
 	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));
 
 	arg.afa_fd = fd;
@@ -834,7 +834,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);
@@ -1088,7 +1088,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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706042139.v54LdcxW027238>