Skip to content

Commit

Permalink
fixup! mktemp: add message for directory not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed Sep 21, 2022
1 parent 7e19225 commit d50f23c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/by-util/test_mktemp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ fn test_nonexistent_tmpdir_env_var() {
stderr
);
assert!(
stderr.ends_with("no\\such\\dir/tmp.XXXXXXXXXX': No such file or directory\n"),
stderr.ends_with("no\\such\\dir\\tmp.XXXXXXXXXX': No such file or directory\n"),
"{}",
stderr
);
Expand All @@ -770,7 +770,7 @@ fn test_nonexistent_tmpdir_env_var() {
stderr
);
assert!(
stderr.ends_with("no\\such\\dir/tmp.XXXXXXXXXX': No such file or directory\n"),
stderr.ends_with("no\\such\\dir\\tmp.XXXXXXXXXX': No such file or directory\n"),
"{}",
stderr
);
Expand Down Expand Up @@ -810,7 +810,7 @@ fn test_nonexistent_dir_prefix() {
result.no_stdout();
let stderr = result.stderr_str();
assert!(
stderr.starts_with("mktemp: failed to create file via template"),
stderr.starts_with("mktemp: failed to create directory via template"),
"{}",
stderr
);
Expand Down

0 comments on commit d50f23c

Please sign in to comment.