cpu_quota zynq_qemu: raise error tolerance

On Qemu, the test results for Xilinx Zynq-7000 are less stable than usual.

Ref #1805
This commit is contained in:
Martin Stein 2015-12-02 12:11:54 +01:00 committed by Christian Helmuth
parent 02ef3d13a3
commit a3a8978d77
1 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,12 @@ proc check_counter { name opt cnt total_cnt } {
#
if {[have_spec x86]} { set tol 0.02 }
#
# Zynq is currently tested merely in Qemu and most likely because of
# that, the results are less precise.
#
if {[have_spec zynq_qemu]} { set tol 0.03 }
if {[expr $total_cnt != 0]} { set is [expr double($cnt) / $total_cnt ] }
set err [expr $is - $opt]