Skip to content

Commit 270f87d

Browse files
committed
cut out a shell invocation
1 parent e41a9fc commit 270f87d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/intrinsic-test/src/common/gen_c.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ pub fn compile_c_programs(compiler_commands: &[String]) -> bool {
6666
compiler_commands
6767
.par_iter()
6868
.map(|compiler_command| {
69-
let output = Command::new("sh").arg("-c").arg(compiler_command).output();
69+
let mut it = compiler_command.split_whitespace();
70+
let mut cmd = Command::new(it.next().unwrap());
71+
cmd.args(it);
72+
73+
let output = cmd.output();
7074
if let Ok(output) = output {
7175
if output.status.success() {
7276
true

crates/intrinsic-test/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn main() {
3838
if !test_environment.build_rust_file() {
3939
std::process::exit(3);
4040
}
41-
info!("comaparing outputs");
41+
info!("comparing outputs");
4242
if !test_environment.compare_outputs() {
4343
std::process::exit(1);
4444
}

0 commit comments

Comments
 (0)