aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_time_time__unittest.cc
blob: 02772da581c34933b48daf0fcbab139cfb602476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- base/time/time_unittest.cc.orig	2021-07-19 18:45:05 UTC
+++ base/time/time_unittest.cc
@@ -2007,6 +2007,7 @@ TEST(TimeDelta, Overflows) {
   static_assert((kLargeDelta / 0.5).is_max(), "");
   static_assert((kLargeDelta / -0.5).is_min(), "");
 
+#if !defined(OS_BSD)
   static_assert(
       TimeDelta::Max() / kOneSecond == std::numeric_limits<double>::infinity(),
       "");
@@ -2035,6 +2036,7 @@ TEST(TimeDelta, Overflows) {
   static_assert(TimeDelta::Max() % -kOneSecond == TimeDelta::Max(), "");
   static_assert(TimeDelta::Min() % kOneSecond == TimeDelta::Min(), "");
   static_assert(TimeDelta::Min() % -kOneSecond == TimeDelta::Min(), "");
+#endif
 
   // Division by zero.
   static_assert((kOneSecond / 0).is_max(), "");