mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fixup! mktemp: respect path given in template argument
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user