summaryrefslogtreecommitdiffstats
path: root/test/MSVC/multiple-pdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/multiple-pdb.py')
-rw-r--r--test/MSVC/multiple-pdb.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MSVC/multiple-pdb.py b/test/MSVC/multiple-pdb.py
index 0e8caa3..8e86639 100644
--- a/test/MSVC/multiple-pdb.py
+++ b/test/MSVC/multiple-pdb.py
@@ -45,6 +45,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.write('SConstruct', """\
env = Environment(PDB = '${TARGET.base}.pdb')
env.Program('test1.cpp')