From 4189157d109193074cd1b45b505cb1ae2e9249a1 Mon Sep 17 00:00:00 2001 From: Tomasz Gajewski Date: Tue, 11 Jun 2019 18:23:30 +0200 Subject: [PATCH] cpu_bench: fixes to make it work reliably Added missing build dependency. Eliminated race condition when processing test output. Fixes #3412 --- repos/os/run/cpu_bench.run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/run/cpu_bench.run b/repos/os/run/cpu_bench.run index d33d1f2a7..4e66dd2d9 100644 --- a/repos/os/run/cpu_bench.run +++ b/repos/os/run/cpu_bench.run @@ -5,7 +5,7 @@ if { [get_cmd_switch --autopilot] } { } } -build "core init test/cpu_bench" +build "core init timer test/cpu_bench" create_boot_directory @@ -49,7 +49,7 @@ proc run_test {name serial_id} { return [expr {$t2 - $t1}] } -run_genode_until "Cpu testsuite started.*\n" 60 +run_genode_until "Cpu testsuite started" 60 set serial_id [output_spawn_id] set bogomips [run_test "bogomips" $serial_id] puts "bogomips: 2G Bogus instructions in $bogomips milliseconds ([expr {2000000.0 / $bogomips}] BogoMIPS)"