Skip to content

Commit 726e33f

Browse files
committed
path: add more Windows tests
1 parent f0fb21e commit 726e33f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/tools/miri/tests/pass/path.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ fn test_absolute() {
3131
assert_absolute_eq(r"\\?\PIPE\name", r"\\?\PIPE\name");
3232
// Verbatim paths are always unchanged, no matter what.
3333
assert_absolute_eq(r"\\?\path.\to/file..", r"\\?\path.\to/file..");
34-
34+
// Trailing dot is removed here.
3535
assert_absolute_eq(r"C:\path..\to.\file.", r"C:\path..\to\file");
36+
// `..` is resolved here.
37+
assert_absolute_eq(r"C:\path\to\..\file", r"C:\path\file");
38+
assert_absolute_eq(r"\\server\share\to\..\file", r"\\server\share\file");
39+
// Magic filename.
3640
assert_absolute_eq(r"COM1", r"\\.\COM1");
41+
assert_absolute_eq(r"C:\path\to\COM1", r"\\.\COM1");
3742
} else {
3843
panic!("unsupported OS");
3944
}

0 commit comments

Comments
 (0)