Run TimeTest.InvalidBaseTimeToTime on Windows only (see issue #2935)

This test is failing on Linux and MacOS.
This commit is contained in:
Marshall Greenblatt 2022-07-22 13:11:01 -04:00
parent 3838536126
commit 5e753d211f
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,8 @@ TEST(TimeTest, InvalidTimeToBaseTime) {
ASSERT_EQ(basetime.val, 0); // Output should always be set.
}
// Only run on Windows because POSIX supports a wider range of dates.
#if defined(OS_WIN)
TEST(TimeTest, InvalidBaseTimeToTime) {
// Unrepresentable.
cef_basetime_t basetime{std::numeric_limits<int64_t>::max()};
@ -80,3 +82,4 @@ TEST(TimeTest, InvalidBaseTimeToTime) {
EXPECT_EQ(date.second, 0);
EXPECT_EQ(date.millisecond, 0);
}
#endif // defined(OS_WIN)