summaryrefslogtreecommitdiffstats
path: root/test/MinGW
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2012-08-22 03:27:31 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2012-08-22 03:27:31 (GMT)
commite3e353343c926d288214057d29c2461fbcf4d4f8 (patch)
tree316fafd6c9140e2ec1eedcb939df9d4b521cd64c /test/MinGW
parente0897dcc1fbcca4fcf927cc51df431fb794e7be0 (diff)
downloadSCons-e3e353343c926d288214057d29c2461fbcf4d4f8.zip
SCons-e3e353343c926d288214057d29c2461fbcf4d4f8.tar.gz
SCons-e3e353343c926d288214057d29c2461fbcf4d4f8.tar.bz2
Another MinGW test skip fix.
Diffstat (limited to 'test/MinGW')
-rw-r--r--test/MinGW/WINDOWS_INSERT_DEF.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MinGW/WINDOWS_INSERT_DEF.py b/test/MinGW/WINDOWS_INSERT_DEF.py
index 78aa26e..67d3e9b 100644
--- a/test/MinGW/WINDOWS_INSERT_DEF.py
+++ b/test/MinGW/WINDOWS_INSERT_DEF.py
@@ -31,12 +31,18 @@ Make sure that WINDOWS_INSERT_DEF isn't ignored when using MinGW.
import sys
import TestSCons
+import SCons.Tool.mingw
+import SCons.Defaults
+
test = TestSCons.TestSCons()
if sys.platform not in ('cygwin', 'win32'):
test.skip_test(
"Skipping mingw test on non-Windows platform: %s" % sys.platform)
+if not SCons.Tool.mingw.find(SCons.Defaults.DefaultEnvironment()):
+ test.skip_test("Skipping mingw test, no MinGW found.\n")
+
test.write('hello.c', r"""
#include <stdio.h>
int hello_world(void) { return printf("Orbis, te saluto!\n"); }