windows: Fix several tests on 64-bit.
Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
parent
51e19e7501
commit
feb219d23f
4 changed files with 34 additions and 16 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue