--- base/strings/safe_sprintf_unittest.cc.orig 2024-05-21 18:07:39 UTC +++ base/strings/safe_sprintf_unittest.cc @@ -735,6 +735,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) { #endif } +#if !BUILDFLAG(IS_BSD) TEST(SafeSPrintfTest, EmitNULL) { char buf[40]; #if defined(__GNUC__) @@ -751,6 +752,7 @@ TEST(SafeSPrintfTest, EmitNULL) { #pragma GCC diagnostic pop #endif } +#endif TEST(SafeSPrintfTest, PointerSize) { // The internal data representation is a 64bit value, independent of the