From d50f23c1603c644f9d1b31b41becb03de2b4eac3 Mon Sep 17 00:00:00 2001 From: Jeffrey Finkelstein Date: Wed, 21 Sep 2022 16:56:17 -0400 Subject: [PATCH] fixup! mktemp: add message for directory not found --- tests/by-util/test_mktemp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_mktemp.rs b/tests/by-util/test_mktemp.rs index af6e4656a39..cd81260ca61 100644 --- a/tests/by-util/test_mktemp.rs +++ b/tests/by-util/test_mktemp.rs @@ -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 ); @@ -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 ); @@ -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 );