From 2c830929da209043ba8a3050cbc6b34b8ce23c05 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Tue, 30 Sep 2008 13:21:17 +0000 Subject: [PATCH] Windows requires SystemRoot env var to run tests --- run-tests.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-tests.php b/run-tests.php index 7f1435e29e..423ede7cd3 100755 --- a/run-tests.php +++ b/run-tests.php @@ -111,6 +111,9 @@ SAFE_MODE_WARNING; } $environment = isset($_ENV) ? $_ENV : array(); +if ((substr(PHP_OS, 0, 3) == "WIN") && empty($environment["SystemRoot"])) { + $environment["SystemRoot"] = getenv("SystemRoot"); +} // Don't ever guess at the PHP executable location. // Require the explicit specification. -- 2.50.1