summaryrefslogtreecommitdiffstats
path: root/test/MSVS/CPPPATH-Dirs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVS/CPPPATH-Dirs.py')
-rw-r--r--test/MSVS/CPPPATH-Dirs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MSVS/CPPPATH-Dirs.py b/test/MSVS/CPPPATH-Dirs.py
index fad2507..45ec846 100644
--- a/test/MSVS/CPPPATH-Dirs.py
+++ b/test/MSVS/CPPPATH-Dirs.py
@@ -41,6 +41,10 @@ if sys.platform != 'win32':
msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvs_exists():
+ msg = "No MSVS toolchain found...skipping test\n"
+ test.skip_test(msg)
SConscript_contents = """\
env = Environment()