Skip to content

Commit 3d79691

Browse files
committed
Make the test run
1 parent 8f7e5bd commit 3d79691

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/shell.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ mod tests {
103103
let opts = Opts { cmd, hook, echo, resolve_symlinks };
104104
let mut source = Cmd(&opts).render().unwrap();
105105

106-
// @TODO test this sometime, somehow
107-
let tempfile = tempfile::tempfile();
108-
109-
Command::new("cmd")
110-
.args(["/c", &source])
106+
Command::new("cmd.exe")
107+
.args(["/a", "/d", "/e:on", "/q", "/v:off", "/k", "@doskey", "/macros:cmd.exe"])
108+
.write_stdin(source)
111109
.assert()
112110
.success()
113111
.stdout("")

0 commit comments

Comments
 (0)