Skip to content

Commit

Permalink
Disable test for Dates before 1900 because it fails with 32-bit time_t
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeard0531 committed Aug 2, 2012
1 parent 3862669 commit af67eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jstests/aggregation/bugs/server6189.js
Expand Up @@ -55,7 +55,8 @@ test(ISODate('1960-01-02 03:04:05.001Z'), true); // second = 5
test(ISODate('1960-01-02 03:04:05.999Z'), true); // second = 5

// Test date before 1900 (negative tm_year values from gmtime)
test(ISODate('1860-01-02 03:04:05.006Z'), false);
// disabled because it fails with 32-bit time_t
// test(ISODate('1860-01-02 03:04:05.006Z'), false);

// Test with time_t == -1 and 0
test(new Date(-1000), false);
Expand Down

0 comments on commit af67eaf

Please sign in to comment.