fixup! mktemp: respect path given in template argument

This commit is contained in:
Jeffrey Finkelstein 2022-05-01 16:51:25 -04:00
parent aa6aefbd64
commit 08816a4f05

View file

@ -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);