Permalink
Browse files

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

…odle
  • Loading branch information...
2 parents db739bf + d03d511 commit 311eb89695b54b4c4c00ecfce8ffa9f7cf9a9d3c @stronk7 stronk7 committed Oct 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/phpunit/classes/util.php
@@ -547,6 +547,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();
+
// Show any unhandled debugging messages, the runbare() could already reset it.
self::display_debugging_messages();
self::reset_debugging();

0 comments on commit 311eb89

Please sign in to comment.