mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
mktemp: fix test_prefix_template_separator adding -p param
This commit is contained in:
parent
276a6ccbf1
commit
e9bd69e051
1 changed files with 2 additions and 2 deletions
|
@ -21,9 +21,9 @@ static TEST_TEMPLATE6: &str = "tempXXXlate"; // spell-checker:disable-line
|
||||||
static TEST_TEMPLATE7: &str = "XXXtemplate"; // spell-checker:disable-line
|
static TEST_TEMPLATE7: &str = "XXXtemplate"; // spell-checker:disable-line
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
static TEST_TEMPLATE8: &str = "tempXXXl/ate";
|
static TEST_TEMPLATE8: &str = "tempXXXl/ate";
|
||||||
static TEST_TEMPLATE9: &str = "a.XXXX";
|
|
||||||
#[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";
|
||||||
|
@ -575,7 +575,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!().args(&["-t", TEST_TEMPLATE9]).succeeds();
|
new_ucmd!().args(&["-p", ".", "-t", TEST_TEMPLATE9]).succeeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue