summaryrefslogtreecommitdiff
path: root/devel/electron35/files/patch-base_strings_safe__sprintf__unittest.cc
blob: 238970e9860424dbf7edbe146a9b323d9a65df22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- base/strings/safe_sprintf_unittest.cc.orig	2025-03-24 20:50:14 UTC
+++ base/strings/safe_sprintf_unittest.cc
@@ -743,6 +743,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
 #endif
 }
 
+#if !BUILDFLAG(IS_BSD)
 TEST(SafeSPrintfTest, EmitNULL) {
   char buf[40];
 #if defined(__GNUC__)
@@ -759,6 +760,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
 #pragma GCC diagnostic pop
 #endif
 }
+#endif
 
 TEST(SafeSPrintfTest, PointerSize) {
   // The internal data representation is a 64bit value, independent of the