mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
fixup! mktemp: respect path given in template argument
This commit is contained in:
parent
aa6aefbd64
commit
08816a4f05
1 changed files with 3 additions and 0 deletions
|
@ -473,7 +473,10 @@ fn test_respect_template() {
|
|||
fn test_respect_template_directory() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.mkdir("d");
|
||||
#[cfg(not(windows))]
|
||||
let template = "d/XXX";
|
||||
#[cfg(windows)]
|
||||
let template = r"d\XXX";
|
||||
let result = ucmd.arg(template).succeeds();
|
||||
let filename = result.no_stderr().stdout_str().trim_end();
|
||||
assert_matches_template!(template, filename);
|
||||
|
|
Loading…
Reference in a new issue