Permalink
Browse files

Merge branch 'w41_MDL-35714_m23_testgc' of git://github.com/skodak/mo…

…odle into MOODLE_23_STABLE
  • Loading branch information...
2 parents c116bd7 + 2104c9f commit 85b1e9785777fb301e22676449dc837f968fd256 @stronk7 stronk7 committed Oct 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/phpunit/classes/util.php
View
3 lib/phpunit/classes/util.php
@@ -544,6 +544,9 @@ public static function reset_dataroot() {
public static function reset_all_data($logchanges = false) {
global $DB, $CFG, $USER, $SITE, $COURSE, $PAGE, $OUTPUT, $SESSION, $GROUPLIB_CACHE;
+ // Release memory and indirectly call destroy() methods to release resource handles, etc.
+ gc_collect_cycles();
+
// reset global $DB in case somebody mocked it
$DB = self::get_global_backup('DB');

0 comments on commit 85b1e97

Please sign in to comment.