summaryrefslogtreecommitdiffstats
path: root/test/MSVC/PCHSTOP-errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/PCHSTOP-errors.py')
-rw-r--r--test/MSVC/PCHSTOP-errors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MSVC/PCHSTOP-errors.py b/test/MSVC/PCHSTOP-errors.py
index a460283..d3ffc70 100644
--- a/test/MSVC/PCHSTOP-errors.py
+++ b/test/MSVC/PCHSTOP-errors.py
@@ -39,6 +39,10 @@ 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)
SConstruct_path = test.workpath('SConstruct')