Skip to content

Commit bc5dabe

Browse files
committed
Use os::tmpdir instead of hard coded /home/ path in test case, closes rust-lang#23373
1 parent ecdf792 commit bc5dabe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/run-pass/issue-20797.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-android
12-
// ignore-windows
13-
1411
// Regression test for #20797.
1512

1613
use std::default::Default;
1714
use std::old_io::IoResult;
1815
use std::old_io::fs;
1916
use std::old_io::fs::PathExtensions;
17+
use std::os;
2018

2119
/// A strategy for acquiring more subpaths to walk.
2220
pub trait Strategy {
@@ -90,5 +88,5 @@ impl<S: Strategy> Iterator for Subpaths<S> {
9088
}
9189

9290
fn main() {
93-
let mut walker: Subpaths<Recursive> = Subpaths::walk(&Path::new("/home")).unwrap();
91+
let mut walker: Subpaths<Recursive> = Subpaths::walk(&os::tmpdir()).unwrap();
9492
}

0 commit comments

Comments
 (0)