diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-10-05 12:01:10 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-05 16:21:55 -0700 |
| commit | 82ef8519c3ce9c2bf1176a6319cccbb3a5376bd2 (patch) | |
| tree | 52785c3fa386bbe797b314d333abfe5d619519ef /src/test/stdtest | |
| parent | 8b4601e08eb0ac54f4c8c12b4dd762b89248abca (diff) | |
| download | rust-82ef8519c3ce9c2bf1176a6319cccbb3a5376bd2.tar.gz rust-82ef8519c3ce9c2bf1176a6319cccbb3a5376bd2.zip | |
Fix some path handling in std::fs on win32
Diffstat (limited to 'src/test/stdtest')
| -rw-r--r-- | src/test/stdtest/fs.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/stdtest/fs.rs b/src/test/stdtest/fs.rs index 2a348cc7ccb..14467ea59a6 100644 --- a/src/test/stdtest/fs.rs +++ b/src/test/stdtest/fs.rs @@ -132,6 +132,7 @@ fn normalize9() { fn normalize10() { let actual = fs::normalize("/a/b/c/../d/./../../e/"); let expected = "/a/e/"; + log_err actual; assert actual == expected; } @@ -140,4 +141,19 @@ fn normalize11() { let actual = fs::normalize("/a/.."); let expected = "/"; assert actual == expected; +} + +#[test] +#[cfg(target_os = "win32")] +fn normalize12() { + let actual = fs::normalize("C:/whatever"); + let expected = "C:/whatever"; + log_err actual; + assert actual == expected; +} + +#[test] +#[cfg(target_os = "win32")] +fn path_is_absolute_win32() { + assert fs::path_is_absolute("C:/whatever"); } \ No newline at end of file |
