diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-19 09:32:25 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-19 09:32:25 -0400 |
commit | f47476614454a115c7644ac487532d6aa560b057 (patch) | |
tree | 3bb9755bf35a51fef119fdcf76451f9317bf267e /pts-core/modules | |
parent | 3b4709ecad81f778fbb0df226db726992582bfb5 (diff) | |
download | phoronix-test-suite-upstream-f47476614454a115c7644ac487532d6aa560b057.tar.gz phoronix-test-suite-upstream-f47476614454a115c7644ac487532d6aa560b057.tar.xz phoronix-test-suite-upstream-f47476614454a115c7644ac487532d6aa560b057.zip |
pts-core: More restructuring of pts-functions-run.php and further
enriching the pts_test_result class
Diffstat (limited to 'pts-core/modules')
-rw-r--r-- | pts-core/modules/graphics_event_checker.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pts-core/modules/graphics_event_checker.php b/pts-core/modules/graphics_event_checker.php index 4d30bf2..3b9501d 100644 --- a/pts-core/modules/graphics_event_checker.php +++ b/pts-core/modules/graphics_event_checker.php @@ -68,17 +68,16 @@ class graphics_event_checker extends pts_module_interface if(self::$start_vertical_sync == TRUE) echo "\nYour video driver is forcing vertical sync to be enabled. This will limit the system's frame-rate performance potential in any graphical tests!\n"; } - public static function __interim_test_run() + public static function __interim_test_run($pts_test_result) { - self::check_video_events(); + self::check_video_events($pts_test_result); } - public static function __post_test_run() + public static function __post_test_run($pts_test_result) { - self::check_video_events(); + self::check_video_events($pts_test_result); } public static function __shutdown() { - self::check_video_events(); if(self::$error_count > 0) { @@ -90,7 +89,7 @@ class graphics_event_checker extends pts_module_interface } } - private static function check_video_events() + private static function check_video_events($pts_test_result = "") { // Check for video resolution changes self::check_video_resolution(); @@ -99,10 +98,10 @@ class graphics_event_checker extends pts_module_interface { $current_error_position = self::nvidia_gpu_error_count(); - if($current_error_position > self::$error_pointer && !empty($GLOBALS["TEST_IDENTIFIER"])) + if($current_error_position > self::$error_pointer && is_object($pts_test_result)) { // GPU Error(s) Happened During The Test - $this_test = $GLOBALS["TEST_IDENTIFIER"]; + $this_test = $pts_test_result->get_attribute("TEST_IDENTIFIER"); $this_error_count = $current_error_position - self::$error_pointer; if(isset(self::$error_analysis[$this_test])) |