diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-06 12:44:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-06 12:44:20 +0000 |
commit | ea39388e488ad77c5f23274dc8d36edcbdd41abb (patch) | |
tree | 822f8797486def9c8d645090fb3c2135f557c699 /modules/simpletest/drupal_web_test_case.php | |
parent | 2e1827d0402de6d1dc355e30756b8cf8070e4044 (diff) | |
download | brdo-ea39388e488ad77c5f23274dc8d36edcbdd41abb.tar.gz brdo-ea39388e488ad77c5f23274dc8d36edcbdd41abb.tar.bz2 |
- Patch #351805 by chx: worked around endless loops in tests.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -117,6 +117,12 @@ class DrupalWebTestCase { protected $assertions = array(); /** + * Time limit for the test. + */ + protected $timeLimit = 180; + + + /** * Constructor for DrupalWebTestCase. * * @param $test_id @@ -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); } /** |