base-hw scheduler test: clean up

* Get rid of preprocessor macros.
* Introduce Main as class.
* Exit with -1 instead of endless loops on errors.
* Don't try to deal with error conditions, just print a message and exit
  with -1.
* Only one operation per line.

Ref #4151
Ref #4710
This commit is contained in:
Martin Stein 2022-12-08 21:28:34 +01:00 committed by Christian Helmuth
parent 0467b4aaf3
commit 615dd377dd
2 changed files with 698 additions and 357 deletions

View File

@ -35,8 +35,8 @@ build_boot_image "core ld.lib.so init test-cpu_scheduler"
append qemu_args " -nographic"
# execute the test in qemu if the targeted platform is supported
run_genode_until "done.*\n" 10
run_genode_until "child .test-cpu_scheduler. exited with exit value .*\n" 10
# check the output
grep_output {\[init -> test-cpu_scheduler\]}
compare_output_to { [init -> test-cpu_scheduler] done }
grep_output {child .test-cpu_scheduler. exited with exit value}
compare_output_to { [init] child "test-cpu_scheduler" exited with exit value 0 }

File diff suppressed because it is too large Load Diff