Commits

Gary Oberbrunner  committed 5046758

Another MinGW test skip fix.

  • Participants
  • Parent commits d41d9d5

Comments (0)

Files changed (1)

File test/MinGW/WINDOWS_INSERT_DEF.py

 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"); }