summaryrefslogtreecommitdiffstats
path: root/test/MSVC/multiple-pdb.py
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2012-12-22 11:41:34 (GMT)
committerDirk Baechle <dl9obn@darc.de>2012-12-22 11:41:34 (GMT)
commit239a4bf92af5eb85ab9322610f46d0f6798f4d4b (patch)
treee6b605a6107af094133c618053090973e9e7cea8 /test/MSVC/multiple-pdb.py
parent66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f (diff)
downloadSCons-239a4bf92af5eb85ab9322610f46d0f6798f4d4b.zip
SCons-239a4bf92af5eb85ab9322610f46d0f6798f4d4b.tar.gz
SCons-239a4bf92af5eb85ab9322610f46d0f6798f4d4b.tar.bz2
- moved check for an installed MSVC toolchain into its own function in TestSCons
Diffstat (limited to 'test/MSVC/multiple-pdb.py')
-rw-r--r--test/MSVC/multiple-pdb.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/MSVC/multiple-pdb.py b/test/MSVC/multiple-pdb.py
index 8e86639..78805e3 100644
--- a/test/MSVC/multiple-pdb.py
+++ b/test/MSVC/multiple-pdb.py
@@ -33,22 +33,13 @@ $TARGET variable (and implicitly $SOURCE), using the original specified
list(s).
"""
-import sys
-
import TestSCons
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-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.skip_if_not_msvc()
test.write('SConstruct', """\
env = Environment(PDB = '${TARGET.base}.pdb')