test: be more strict for affinity.run

Check that in every round really all threads are alive on all CPUs. It
happened that only the first round was ok (all alive) and in the next rounds
some were dead. Unfortunately the test claimed to be successful.
This commit is contained in:
Alexander Boettcher 2014-02-26 11:31:28 +01:00 committed by Christian Helmuth
parent ca0d79010d
commit 93605c2b15
1 changed files with 9 additions and 4 deletions

View File

@ -56,12 +56,17 @@ if {[is_qemu_available]} {
}
}
set good_string {[init -> test-affinity] Round XX:}
for {set i 0} {$i < $cpus} {incr i} {
append good_string " A"
set good_string {}
for {set r 0} {$r <= $rounds} {incr r} {
append good_string {[init -> test-affinity] Round }
append good_string [format "%02d" $r]
append good_string ":"
for {set i 0} {$i < $cpus} {incr i} {
append good_string " A"
}
append good_string "\n"
}
grep_output {\[init -\> test-affinity\] Round}
unify_output {[0-9]+} "XX"
compare_output_to $good_string