Skip to content

Commit c1a0996

Browse files
committed
SERVER-6058 Fix time_support_test on systems with small time_t
1 parent 45a9b39 commit c1a0996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mongo/util/time_support_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ namespace {
8484

8585
// Test date before 1900 (negative tm_year values from gmtime)
8686
#ifndef _WIN32 // Negative Dates don't currently work on Windows
87-
ASSERT_EQUALS(std::string("1860-01-02T03:04:05.006Z"),
88-
dateToISOStringUTC(Date_t(-3471195354994LL)));
87+
if (!isTimeTSmall)
88+
ASSERT_EQUALS(std::string("1860-01-02T03:04:05.006Z"),
89+
dateToISOStringUTC(Date_t(-3471195354994LL)));
8990
#endif
9091

9192
// Test with time_t == -1

0 commit comments

Comments
 (0)