This commit is contained in:
Anton-4 2022-02-28 18:18:41 +01:00
parent 6acd2f338b
commit 5f865a4a0c
6 changed files with 32 additions and 42 deletions

View file

@ -42,12 +42,10 @@ fn check_cmd_output(
.unwrap()
.to_string();
let out= if cmd_str.contains("cfold") {
let out = if cmd_str.contains("cfold") {
let child = thread::Builder::new()
.stack_size(CFOLD_STACK_SIZE)
.spawn(
move|| {run_cmd(&cmd_str, &[stdin_str], &[])}
)
.spawn(move || run_cmd(&cmd_str, &[stdin_str], &[]))
.unwrap();
child.join().unwrap()
@ -55,7 +53,6 @@ fn check_cmd_output(
run_cmd(&cmd_str, &[stdin_str], &[])
};
if !&out.stdout.ends_with(expected_ending) {
panic!(
"expected output to end with {:?} but instead got {:#?}",
@ -103,7 +100,6 @@ fn bench_cmd<T: Measurement>(
}
}
pub fn bench_nqueens<T: Measurement>(bench_group_opt: Option<&mut BenchmarkGroup<T>>) {
exec_bench_w_input(
&example_file("benchmarks", "NQueens.roc"),