summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index aa83cc84d36..2592c3ae55d 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -96,7 +96,9 @@ def getCppCompiler():
def isMINGW():
if not isWin32():
return False
- return getCppCompiler() == "MINGW"
+ # Ruby Installer DEVKIT sets the RI_DEVKIT environment variable,
+ # we check for this variable to detect the Ruby MINGW environment.
+ return os.environ.has_key("RI_DEVKIT")
def isVC90():
if not isWin32():