diff --git a/tests/by-util/test_mktemp.rs b/tests/by-util/test_mktemp.rs index 7c3d62150..b6e3b2076 100644 --- a/tests/by-util/test_mktemp.rs +++ b/tests/by-util/test_mktemp.rs @@ -21,9 +21,9 @@ static TEST_TEMPLATE6: &str = "tempXXXlate"; // spell-checker:disable-line static TEST_TEMPLATE7: &str = "XXXtemplate"; // spell-checker:disable-line #[cfg(unix)] static TEST_TEMPLATE8: &str = "tempXXXl/ate"; -static TEST_TEMPLATE9: &str = "a.XXXX"; #[cfg(windows)] static TEST_TEMPLATE8: &str = "tempXXXl\\ate"; +static TEST_TEMPLATE9: &str = "a.XXXX"; #[cfg(not(windows))] const TMPDIR: &str = "TMPDIR"; @@ -575,7 +575,7 @@ fn test_template_path_separator() { /// Test that a prefix with a point is valid. #[test] fn test_prefix_template_separator() { - new_ucmd!().args(&["-t", TEST_TEMPLATE9]).succeeds(); + new_ucmd!().args(&["-p", ".", "-t", TEST_TEMPLATE9]).succeeds(); } #[test]