test(windows): create protected output directory in handoff test

Exercise the production directory constructor under the retained staging-directory guard while preserving the existing elevated and unelevated assertions.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou committed 2026-11-06 21:41:54 +08:00
1 parent a188f7b8f1
commit d7fb4aff5f
1 file changed
+1 -1
+1 -1
View File
@@ -183,7 +183,7 @@ mod tests {
};
let mut script = write_install_script(commands, &source).unwrap();
let runner = script.file.path().with_extension("bat.dir");
fs::create_dir(&runner).unwrap();
directory::create(&runner).unwrap();
let output = run_script(&mut script);
let copied = fs::read(&marker).unwrap();
let cleaned = !runner.exists()