Make the test run

This commit is contained in:
mataha 2023-06-06 01:24:24 +02:00
parent ba2c1345e4
commit 6e88046442
1 changed files with 3 additions and 5 deletions

View File

@ -104,11 +104,9 @@ mod tests {
let opts = Opts { cmd, hook, echo, resolve_symlinks };
let mut source = Cmd(&opts).render().unwrap();
// @TODO test this sometime, somehow
let tempfile = tempfile::tempfile();
Command::new("cmd")
.args(["/c", &source])
Command::new("cmd.exe")
.args(["/a", "/d", "/e:on", "/q", "/v:off", "/k", "@doskey", "/macros:cmd.exe"])
.write_stdin(source)
.assert()
.success()
.stdout("")