aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-base_strings_safe__sprintf__unittest.cc
blob: 5752dc911ef00be01759dae1b089504c876fce9d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                       
                                         
                                                        






                                  
                                                     






                                                                           
--- base/strings/safe_sprintf_unittest.cc.orig	2022-07-22 17:30:31 UTC
+++ base/strings/safe_sprintf_unittest.cc
@@ -732,6 +732,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
 #endif
 }
 
+#if !BUILDFLAG(IS_BSD)
 TEST(SafeSPrintfTest, EmitNULL) {
   char buf[40];
 #if defined(__GNUC__)
@@ -748,6 +749,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
 #pragma GCC diagnostic pop
 #endif
 }
+#endif
 
 TEST(SafeSPrintfTest, PointerSize) {
   // The internal data representation is a 64bit value, independent of the