Skip to content

Miri subtree update #139630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
path: add more Windows tests
  • Loading branch information
RalfJung committed Apr 10, 2025
commit 726e33f0e34b077334f1bd3f06f46dfa04ee65b1
7 changes: 6 additions & 1 deletion src/tools/miri/tests/pass/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ fn test_absolute() {
assert_absolute_eq(r"\\?\PIPE\name", r"\\?\PIPE\name");
// Verbatim paths are always unchanged, no matter what.
assert_absolute_eq(r"\\?\path.\to/file..", r"\\?\path.\to/file..");

// Trailing dot is removed here.
assert_absolute_eq(r"C:\path..\to.\file.", r"C:\path..\to\file");
// `..` is resolved here.
assert_absolute_eq(r"C:\path\to\..\file", r"C:\path\file");
assert_absolute_eq(r"\\server\share\to\..\file", r"\\server\share\file");
// Magic filename.
assert_absolute_eq(r"COM1", r"\\.\COM1");
assert_absolute_eq(r"C:\path\to\COM1", r"\\.\COM1");
} else {
panic!("unsupported OS");
}
Expand Down