Skip to content

Commit d395e9c

Browse files
Removed aarch64-be specific execution command for rust test files
1 parent cc615b6 commit d395e9c

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

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

+8-23
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use super::types::FailureReason;
22
use rayon::prelude::*;
33
use std::process::Command;
44

5-
static SPECIAL_TARGETS: [&str; 1] = ["aarch64_be-unknown-linux-gnu"];
6-
75
pub fn compare_outputs(
86
intrinsic_name_list: &Vec<String>,
97
toolchain: &str,
@@ -18,27 +16,14 @@ pub fn compare_outputs(
1816
.arg(format!("{runner} ./c_programs/{intrinsic_name}"))
1917
.output();
2018

21-
let rust = if SPECIAL_TARGETS
22-
.into_iter()
23-
.find(|&special_target| special_target == target)
24-
.is_some()
25-
{
26-
Command::new("sh")
27-
.arg("-c")
28-
.arg(format!(
29-
"{runner} ./rust_programs/target/{target}/release/{intrinsic_name}",
30-
))
31-
.output()
32-
} else {
33-
Command::new("sh")
34-
.current_dir("rust_programs")
35-
.arg("-c")
36-
.arg(format!(
37-
"cargo {toolchain} run --target {target} --bin {intrinsic_name} --release",
38-
))
39-
.env("RUSTFLAGS", "-Cdebuginfo=0")
40-
.output()
41-
};
19+
let rust = Command::new("sh")
20+
.current_dir("rust_programs")
21+
.arg("-c")
22+
.arg(format!(
23+
"cargo {toolchain} run --target {target} --bin {intrinsic_name} --release",
24+
))
25+
.env("RUSTFLAGS", "-Cdebuginfo=0")
26+
.output();
4227

4328
let (c, rust) = match (c, rust) {
4429
(Ok(c), Ok(rust)) => (c, rust),

0 commit comments

Comments
 (0)