summaryrefslogtreecommitdiffstats
path: root/test/MSVC/PCH-source.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/PCH-source.py')
-rw-r--r--test/MSVC/PCH-source.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/MSVC/PCH-source.py b/test/MSVC/PCH-source.py
index df6d6b1..6015fec 100644
--- a/test/MSVC/PCH-source.py
+++ b/test/MSVC/PCH-source.py
@@ -31,16 +31,11 @@ up in both the env.PCH() and the env.Program() source list.
Issue 2505: http://scons.tigris.org/issues/show_bug.cgi?id=2505
"""
-import sys
-
import TestSCons
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)
-
+test.skip_if_not_msvc()
test.write('SConstruct', """\
env = Environment(tools=['msvc', 'mslink'])