diff options
| author | bors <bors@rust-lang.org> | 2013-06-05 19:55:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-05 19:55:36 -0700 |
| commit | 4a19af1b03c0099eed8033bd28b0eaae9f926552 (patch) | |
| tree | 5d419625bfc620e4521db208ebc69d5947df9569 | |
| parent | f5ef0766da03b15262c410953316541ff9f931d4 (diff) | |
| parent | 1ebb62f591c078294762e1124357d74d21a66974 (diff) | |
| download | rust-4a19af1b03c0099eed8033bd28b0eaae9f926552.tar.gz rust-4a19af1b03c0099eed8033bd28b0eaae9f926552.zip | |
auto merge of #6960 : msullivan/rust/fix-pollution, r=brson
| -rw-r--r-- | src/test/run-pass/stat.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/run-pass/stat.rs b/src/test/run-pass/stat.rs index a3774d58ee7..d07da255c5d 100644 --- a/src/test/run-pass/stat.rs +++ b/src/test/run-pass/stat.rs @@ -20,7 +20,7 @@ use std::uint; pub fn main() { let dir = tempfile::mkdtemp(&Path("."), "").unwrap(); - let path = dir.with_filename("file"); + let path = dir.push("file"); { match io::file_writer(&path, [io::Create, io::Truncate]) { @@ -36,5 +36,6 @@ pub fn main() { assert!(path.exists()); assert_eq!(path.get_size(), Some(1000)); + os::remove_file(&path); os::remove_dir(&dir); } |
