Source

SCons / test / MSVC / pch-spaces-subdir.py

Diff from to

test/MSVC/pch-spaces-subdir.py

 Verify PCH works if variant dir has spaces in its name
 """
 
-import sys
 import time
 
 import TestSCons
 
 test = TestSCons.TestSCons(match = TestSCons.match_re)
 
-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('Main.cpp', """\
 #include "Precompiled.h"