Skip to content

Commit

Permalink
auto merge of #6960 : msullivan/rust/fix-pollution, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jun 6, 2013
2 parents f5ef076 + 1ebb62f commit 4a19af1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/run-pass/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand All @@ -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);
}

0 comments on commit 4a19af1

Please sign in to comment.