Commits

Gary Oberbrunner  committed d41d9d5 Draft

Skip MinGW test on Windows machines without MinGW.

Need to do this, otherwise it fails erroneously.

  • Participants
  • Parent commits 51ccc2e

Comments (0)

Files changed (1)

File test/MinGW/MinGWSharedLibrary.py

 import sys
 import TestSCons
 
+import SCons.Tool.mingw
+import SCons.Defaults
+
 _python_ = TestSCons._python_
 
 test = TestSCons.TestSCons()
 if sys.platform not in ('cygwin','win32',):
     test.skip_test("Skipping mingw test on non-Windows %s platform."%sys.platform)
 
+if not SCons.Tool.mingw.find(SCons.Defaults.DefaultEnvironment()):
+    test.skip_test("Skipping mingw test, no MinGW found.\n")
+
 
 test.write('foobar.cc', """
 int abc(int a) {