From 93605c2b157ff97f8d36aa4a271229bd88cad609 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Wed, 26 Feb 2014 11:31:28 +0100 Subject: [PATCH] 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. --- base/run/affinity.run | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/base/run/affinity.run b/base/run/affinity.run index f0d10221af..b227d949ed 100644 --- a/base/run/affinity.run +++ b/base/run/affinity.run @@ -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