diff options
| author | bors <bors@rust-lang.org> | 2014-08-08 19:51:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-08 19:51:11 +0000 |
| commit | 57630eb8090f305da41291c481c42bf94b9ccf34 (patch) | |
| tree | 192aa3f075753d60e49ab7724ad5d9a6dde53a76 /src/libstd | |
| parent | 98f1b0fb6861b624b54a2fcce0cf827261ae5460 (diff) | |
| parent | 24ebbb442014d0bca9f32b36c25f739bf18146bf (diff) | |
| download | rust-57630eb8090f305da41291c481c42bf94b9ccf34.tar.gz rust-57630eb8090f305da41291c481c42bf94b9ccf34.zip | |
auto merge of #16336 : retep998/rust/master, r=brson
Several of the tests in `make check-fast` were failing so this fixes those tests.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/fs.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstd/io/fs.rs b/src/libstd/io/fs.rs index 6a4172d5c35..7335511ed85 100644 --- a/src/libstd/io/fs.rs +++ b/src/libstd/io/fs.rs @@ -1592,10 +1592,11 @@ mod test { let tmpdir = tmpdir(); let path = tmpdir.join("a"); check!(File::create(&path)); - - check!(change_file_times(&path, 1000, 2000)); - assert_eq!(check!(path.stat()).accessed, 1000); - assert_eq!(check!(path.stat()).modified, 2000); + // These numbers have to be bigger than the time in the day to account for timezones + // Windows in particular will fail in certain timezones with small enough values + check!(change_file_times(&path, 100000, 200000)); + assert_eq!(check!(path.stat()).accessed, 100000); + assert_eq!(check!(path.stat()).modified, 200000); }) iotest!(fn utime_noexist() { |
