Skip to content

Commit 4a19af1

Browse files
committed
auto merge of #6960 : msullivan/rust/fix-pollution, r=brson
2 parents f5ef076 + 1ebb62f commit 4a19af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/stat.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::uint;
2020

2121
pub fn main() {
2222
let dir = tempfile::mkdtemp(&Path("."), "").unwrap();
23-
let path = dir.with_filename("file");
23+
let path = dir.push("file");
2424

2525
{
2626
match io::file_writer(&path, [io::Create, io::Truncate]) {
@@ -36,5 +36,6 @@ pub fn main() {
3636
assert!(path.exists());
3737
assert_eq!(path.get_size(), Some(1000));
3838

39+
os::remove_file(&path);
3940
os::remove_dir(&dir);
4041
}

0 commit comments

Comments
 (0)