summaryrefslogtreecommitdiff
path: root/test/MSVC/msvc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/msvc.py')
-rw-r--r--test/MSVC/msvc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py
index 106aed9e..d98ffbe4 100644
--- a/test/MSVC/msvc.py
+++ b/test/MSVC/msvc.py
@@ -40,6 +40,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
#####
# Test the basics