mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
Approved by: rene (mentor, implicit) Security: https://vuxml.freebsd.org/freebsd/fd87a250-ff78-11ed-8290-a8a1599412c6.html
20 lines
853 B
C++
20 lines
853 B
C++
--- base/files/file_util_unittest.cc.orig 2023-05-31 08:12:17 UTC
|
|
+++ base/files/file_util_unittest.cc
|
|
@@ -3871,7 +3871,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) {
|
|
}
|
|
#endif // BUILDFLAG(IS_WIN)
|
|
|
|
-#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE)
|
|
+#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD)
|
|
TEST_F(FileUtilTest, ReadFileToStringWithProcFileSystem) {
|
|
FilePath file_path("/proc/cpuinfo");
|
|
std::string data = "temp";
|
|
@@ -4594,7 +4594,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles
|
|
NULL);
|
|
#else
|
|
size_t bytes_written =
|
|
- ::write(::fileno(output_file.get()), content.c_str(), content.length());
|
|
+ ::write(fileno(output_file.get()), content.c_str(), content.length());
|
|
#endif
|
|
EXPECT_EQ(content.length(), bytes_written);
|
|
::fflush(output_file.get());
|