std::rt::io::support: Fix ignored test on Win32

Assumes drive C: exists.

Closes #8812.
This commit is contained in:
klutzy 2013-09-15 23:18:47 +09:00
parent d2ce83ccb1
commit 1e745f1679
1 changed files with 1 additions and 2 deletions

View File

@ -33,9 +33,8 @@ mod test {
use super::PathLike;
#[test]
#[ignore(cfg(windows))] // FIXME #8812
fn path_like_smoke_test() {
let expected = "/home";
let expected = if cfg!(unix) { "/home" } else { "C:\\" };
let path = Path(expected);
path.path_as_str(|p| assert!(p == expected));
path.path_as_str(|p| assert!(p == expected));