Skip to content

Commit

Permalink
SERVER-11174 Skip tests of negative dates on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sverch committed Oct 14, 2013
1 parent fc3b552 commit 9fcdfeb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jstests/tool/csvexport_dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ t = new ToolTest("csvexport_date_before_epoch")
c = t.startDB("foo");

function test(date) {

if (date.valueOf() < 0 && _isWindows()) {
// some versions of windows (but not all) fail with dates before 1970
print("skipping test of " + date.tojson() +
" because system might not support dates before 1970");
return;
}

print("testing " + date);

c.drop();
Expand Down

0 comments on commit 9fcdfeb

Please sign in to comment.