--- base/test/generate_fontconfig_caches.cc.orig 2019-03-11 22:00:51 UTC +++ base/test/generate_fontconfig_caches.cc @@ -57,7 +57,14 @@ int main() { base::TearDownFontconfig(); // Check existence of intended fontconfig cache file. +#if defined(OS_BSD) + // Our version of fontconfig is too old to respect .uuid files in font directories, + // so we check for the CACHEDIR.TAG file instead CHECK(base::PathExists( + fontconfig_caches.Append("CACHEDIR.TAG"))); +#else + CHECK(base::PathExists( fontconfig_caches.Append(base::StrCat({uuid, "-le64.cache-7"})))); +#endif return 0; }