Skip to content

Commit

Permalink
Fix stat.rs to not pollute the build directory. Closes #6959.
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Jun 5, 2013
1 parent c5fea4a commit 1ebb62f
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);
}

5 comments on commit 1ebb62f

@bors
Copy link
Contributor

@bors bors commented on 1ebb62f Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at msullivan@1ebb62f

@bors
Copy link
Contributor

@bors bors commented on 1ebb62f Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging msullivan/rust/fix-pollution = 1ebb62f into auto

@bors
Copy link
Contributor

@bors bors commented on 1ebb62f Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msullivan/rust/fix-pollution = 1ebb62f merged ok, testing candidate = 4a19af1

@bors
Copy link
Contributor

@bors bors commented on 1ebb62f Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 1ebb62f Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 4a19af1

Please sign in to comment.