1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

mktemp: remove TEST_TEMPLATE9

This commit is contained in:
Daniel Hofstetter 2023-05-19 10:42:52 +02:00
parent 5be5f85043
commit a01dc20c30

View file

@ -23,7 +23,6 @@ static TEST_TEMPLATE7: &str = "XXXtemplate"; // spell-checker:disable-line
static TEST_TEMPLATE8: &str = "tempXXXl/ate"; static TEST_TEMPLATE8: &str = "tempXXXl/ate";
#[cfg(windows)] #[cfg(windows)]
static TEST_TEMPLATE8: &str = "tempXXXl\\ate"; static TEST_TEMPLATE8: &str = "tempXXXl\\ate";
static TEST_TEMPLATE9: &str = "a.XXXX";
#[cfg(not(windows))] #[cfg(not(windows))]
const TMPDIR: &str = "TMPDIR"; const TMPDIR: &str = "TMPDIR";
@ -573,9 +572,7 @@ fn test_template_path_separator() {
/// Test that a prefix with a point is valid. /// Test that a prefix with a point is valid.
#[test] #[test]
fn test_prefix_template_separator() { fn test_prefix_template_separator() {
new_ucmd!() new_ucmd!().args(&["-p", ".", "-t", "a.XXXX"]).succeeds();
.args(&["-p", ".", "-t", TEST_TEMPLATE9])
.succeeds();
} }
#[test] #[test]