svn commit: r357580 - head/contrib/netbsd-tests/lib/libc/c063
Kyle Evans
kevans at FreeBSD.org
Wed Feb 5 17:21:37 UTC 2020
Author: kevans
Date: Wed Feb 5 17:21:36 2020
New Revision: 357580
URL: https://svnweb.freebsd.org/changeset/base/357580
Log:
O_SEARCH test: drop O_SEARCH|O_RDWR local diff
In FreeBSD's O_SEARCH implementation, O_SEARCH in conjunction with O_RDWR or
O_WRONLY is explicitly rejected. In this case, O_RDWR was not necessary
anyways as the file will get created with or without it.
This was submitted upstream as misc/54940 and committed in rev 1.8 of the
file.
Modified:
head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
Modified: head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c Wed Feb 5 16:55:00 2020 (r357579)
+++ head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c Wed Feb 5 17:21:36 2020 (r357580)
@@ -258,11 +258,7 @@ ATF_TC_BODY(o_search_notdir, tc)
int fd;
ATF_REQUIRE(mkdir(DIR, 0755) == 0);
-#ifndef __FreeBSD__
- ATF_REQUIRE((dfd = open(FILE, O_CREAT|O_RDWR|O_SEARCH, 0644)) != -1);
-#else
ATF_REQUIRE((dfd = open(FILE, O_CREAT|O_SEARCH, 0644)) != -1);
-#endif
ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDWR, 0)) == -1);
ATF_REQUIRE(errno == ENOTDIR);
ATF_REQUIRE(close(dfd) == 0);
More information about the svn-src-all
mailing list