|
From: <pp...@us...> - 2011-11-30 17:58:27
|
Revision: 2037
http://simpletest.svn.sourceforge.net/simpletest/?rev=2037&view=rev
Author: pp11
Date: 2011-11-30 17:58:21 +0000 (Wed, 30 Nov 2011)
Log Message:
-----------
Applying patch 3420857 : "Restore working directory inside the shutdown function"
Modified Paths:
--------------
simpletest/trunk/autorun.php
Modified: simpletest/trunk/autorun.php
===================================================================
--- simpletest/trunk/autorun.php 2011-06-09 08:37:45 UTC (rev 2036)
+++ simpletest/trunk/autorun.php 2011-11-30 17:58:21 UTC (rev 2037)
@@ -16,12 +16,14 @@
/**#@-*/
$GLOBALS['SIMPLETEST_AUTORUNNER_INITIAL_CLASSES'] = get_declared_classes();
+$GLOBALS['SIMPLETEST_AUTORUNNER_INITIAL_PATH'] = getcwd();
register_shutdown_function('simpletest_autorun');
/**
* Exit handler to run all recent test cases and exit system if in CLI
*/
function simpletest_autorun() {
+ chdir($GLOBALS['SIMPLETEST_AUTORUNNER_INITIAL_PATH']);
if (tests_have_run()) {
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|