From e159a668639fb412c4cec1288e5330b182297d0a Mon Sep 17 00:00:00 2001 From: mkv Date: Mon, 1 Dec 2014 11:01:56 +0300 Subject: [PATCH] Adjusting CPU time for new testing cases. --- tests/bugs/moddata_3/bug25487_1 | 12 ++++++------ tests/bugs/moddata_3/bug25487_2 | 14 ++++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/bugs/moddata_3/bug25487_1 b/tests/bugs/moddata_3/bug25487_1 index a6eb562725..8d7fa1feac 100644 --- a/tests/bugs/moddata_3/bug25487_1 +++ b/tests/bugs/moddata_3/bug25487_1 @@ -51,21 +51,21 @@ if {[string compare $currentOS "Windows NT"] == 0} { if {[string compare $currentOS "Linux"] == 0} { if {[regexp {Debug mode} [dversion]]} { # DEBUG mode - # initial CPU_time for LINUX in DEBUG mode is 292 ((132+14)*2) sec + # initial CPU_time for LINUX in DEBUG mode is 900 sec puts "Checking LINUX performance in debug mode..." - if {$CPU_time > 292.} { + if {$CPU_time > 900.} { puts "ERROR: OCC25487 is reproduced." - puts " Low performance: $CPU_time (but should be less than 292 sec)" + puts " Low performance: $CPU_time (but should be less than 900 sec)" } else { puts "Done!" } } else { # OPTIMIZE mode - # initial CPU_time for LINUX in OPTIMIZE mode is 146 (132+14) sec + # initial CPU_time for LINUX in OPTIMIZE mode is 190 (173+17) sec puts "Checking LINUX performance in optimize mode..." - if {$CPU_time > 146.} { + if {$CPU_time > 190.} { puts "ERROR: OCC25487 is reproduced." - puts " Low performance: $CPU_time (but should be less than 146 sec)" + puts " Low performance: $CPU_time (but should be less than 190 sec)" } else { puts "Done!" } diff --git a/tests/bugs/moddata_3/bug25487_2 b/tests/bugs/moddata_3/bug25487_2 index 41f8cacd0c..c4bc26e3fb 100644 --- a/tests/bugs/moddata_3/bug25487_2 +++ b/tests/bugs/moddata_3/bug25487_2 @@ -6,6 +6,8 @@ puts "" # Extrema_GenExtPS needs to be optimized ########################################## +cpulimit 1500 + pload DATAEXCHANGEKERNEL # Restore testing shape and get timing characteristics for operation stepread @@ -51,21 +53,21 @@ if {[string compare $currentOS "Windows NT"] == 0} { if {[string compare $currentOS "Linux"] == 0} { if {[regexp {Debug mode} [dversion]]} { # DEBUG mode - # initial CPU_time for LINUX in DEBUG mode is 902 ((410+41)*2) sec + # initial CPU_time for LINUX in DEBUG mode is 1500 sec puts "Checking LINUX performance in debug mode..." - if {$CPU_time > 902.} { + if {$CPU_time > 1500.} { puts "ERROR: OCC25487 is reproduced." - puts " Low performance: $CPU_time (but should be less than 902 sec)" + puts " Low performance: $CPU_time (but should be less than 1500 sec)" } else { puts "Done!" } } else { # OPTIMIZE mode - # initial CPU_time for LINUX in OPTIMIZE mode is 451 (410+41) sec + # initial CPU_time for LINUX in OPTIMIZE mode is 575 (523+52) sec puts "Checking LINUX performance in optimize mode..." - if {$CPU_time > 451.} { + if {$CPU_time > 575.} { puts "ERROR: OCC25487 is reproduced." - puts " Low performance: $CPU_time (but should be less than 451 sec)" + puts " Low performance: $CPU_time (but should be less than 575 sec)" } else { puts "Done!" } -- 2.20.1