blob: b99b3e8f323c0a19fce9f0b5e4993d32620bdf1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- base/test/test_file_util_linux.cc.orig 2025-03-24 20:50:14 UTC
+++ base/test/test_file_util_linux.cc
@@ -56,9 +56,11 @@ bool EvictFileFromSystemCache(const FilePath& file) {
if (fdatasync(fd.get()) != 0) {
return false;
}
+#if !BUILDFLAG(IS_BSD)
if (posix_fadvise(fd.get(), 0, 0, POSIX_FADV_DONTNEED) != 0) {
return false;
}
+#endif
return true;
}
|