From 6e88046442486dbd54812d5f7279a220598dd279 Mon Sep 17 00:00:00 2001 From: mataha Date: Tue, 6 Jun 2023 01:24:24 +0200 Subject: [PATCH] Make the test run --- src/shell.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/shell.rs b/src/shell.rs index b934a91..9bc5dac 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -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("")