From ea39388e488ad77c5f23274dc8d36edcbdd41abb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 6 Jan 2009 12:44:20 +0000 Subject: - Patch #351805 by chx: worked around endless loops in tests. --- modules/simpletest/drupal_web_test_case.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index f1cb12774..0894af5ee 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -116,6 +116,12 @@ class DrupalWebTestCase { */ protected $assertions = array(); + /** + * Time limit for the test. + */ + protected $timeLimit = 180; + + /** * Constructor for DrupalWebTestCase. * @@ -857,6 +863,7 @@ class DrupalWebTestCase { variable_set('file_directory_path', file_directory_path() . '/' . $db_prefix); $directory = file_directory_path(); file_check_directory($directory, FILE_CREATE_DIRECTORY); // Create the files directory. + set_time_limit($this->timeLimit); } /** -- cgit v1.2.3