std::rt::io::support: Fix ignored test on Win32
Assumes drive C: exists. Closes #8812.
This commit is contained in:
parent
d2ce83ccb1
commit
1e745f1679
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue