diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-05 23:29:11 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-10 01:37:11 -0800 |
| commit | 5e6bbc6bfa82f3ad0a014df24b40cbc042f24035 (patch) | |
| tree | 08a64c33bf88ad4c750db52f5f64e0717302b91f /src/libstd/rt | |
| parent | b545751597a8cdeee4554338318f0ed6339634fd (diff) | |
| download | rust-5e6bbc6bfa82f3ad0a014df24b40cbc042f24035.tar.gz rust-5e6bbc6bfa82f3ad0a014df24b40cbc042f24035.zip | |
Assorted test fixes and merge conflicts
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/io/fs.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstd/rt/io/fs.rs b/src/libstd/rt/io/fs.rs index f9e622b1f1e..06c07308cf6 100644 --- a/src/libstd/rt/io/fs.rs +++ b/src/libstd/rt/io/fs.rs @@ -589,7 +589,8 @@ pub fn rmdir_recursive(path: &Path) { /// Changes the timestamps for a file's last modification and access time. /// The file at the path specified will have its last access time set to -/// `atime` and its modification time set to `mtime`. +/// `atime` and its modification time set to `mtime`. The times specified should +/// be in milliseconds. /// /// # Errors /// @@ -1266,9 +1267,9 @@ mod test { let path = tmpdir.join("a"); File::create(&path); - change_file_times(&path, 100, 200); - assert_eq!(path.stat().accessed, 100); - assert_eq!(path.stat().modified, 200); + change_file_times(&path, 1000, 2000); + assert_eq!(path.stat().accessed, 1000); + assert_eq!(path.stat().modified, 2000); rmdir_recursive(&tmpdir); } |
