Skip to content

Commit 1e745f1

Browse files
committed
std::rt::io::support: Fix ignored test on Win32
Assumes drive C: exists. Closes #8812.
1 parent d2ce83c commit 1e745f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/rt/io/support.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ mod test {
3333
use super::PathLike;
3434

3535
#[test]
36-
#[ignore(cfg(windows))] // FIXME #8812
3736
fn path_like_smoke_test() {
38-
let expected = "/home";
37+
let expected = if cfg!(unix) { "/home" } else { "C:\\" };
3938
let path = Path(expected);
4039
path.path_as_str(|p| assert!(p == expected));
4140
path.path_as_str(|p| assert!(p == expected));

0 commit comments

Comments
 (0)