summaryrefslogtreecommitdiffstats
path: root/test/MSVC/pdb-VariantDir-path.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/pdb-VariantDir-path.py')
-rw-r--r--test/MSVC/pdb-VariantDir-path.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MSVC/pdb-VariantDir-path.py b/test/MSVC/pdb-VariantDir-path.py
index 796c36e..899208e 100644
--- a/test/MSVC/pdb-VariantDir-path.py
+++ b/test/MSVC/pdb-VariantDir-path.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.subdir('src')
test.write('SConstruct', """\