Skip to content

Commit

Permalink
Debugging for a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 3, 2024
1 parent c0e61ed commit cb47341
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/windows-open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ fn windows_open_special() {
".ext.more. ",
".ext.more .",
] {
let name = format!("{}{}{}", prefix, device, suffix);
eprintln!("testing '{}'", name);

match tmpdir
.open(&format!("{}{}{}", prefix, device, suffix))
.open(&name)
.unwrap_err()
.kind()
{
Expand All @@ -165,7 +168,7 @@ fn windows_open_special() {
let mut options = cap_std::fs::OpenOptions::new();
options.write(true);
match tmpdir
.open_with(&format!("{}{}{}", prefix, device, suffix), &options)
.open_with(&name, &options)
.unwrap_err()
.kind()
{
Expand All @@ -174,7 +177,7 @@ fn windows_open_special() {
}

match tmpdir
.create(&format!("{}{}{}", prefix, device, suffix))
.create(&name)
.unwrap_err()
.kind()
{
Expand Down

0 comments on commit cb47341

Please sign in to comment.