mktemp: fix test_prefix_template_separator adding -p param

This commit is contained in:
ZauJulio 2023-03-01 15:45:41 -03:00
parent 276a6ccbf1
commit e9bd69e051
No known key found for this signature in database
GPG key ID: 5AC499A308A063B8

View file

@ -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]