diff options
Diffstat (limited to 'test/MSVC/MSVC_SDK_VERSION.py')
-rw-r--r-- | test/MSVC/MSVC_SDK_VERSION.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/MSVC/MSVC_SDK_VERSION.py b/test/MSVC/MSVC_SDK_VERSION.py index 4a3537b..1d9f0f4 100644 --- a/test/MSVC/MSVC_SDK_VERSION.py +++ b/test/MSVC/MSVC_SDK_VERSION.py @@ -84,8 +84,11 @@ if GE_VS2015_versions: test.write('SConstruct', textwrap.dedent( """ DefaultEnvironment(tools=[]) - env = Environment(MSVC_VERSION={}, MSVC_SDK_VERSION={}, tools=['msvc']) - """.format(repr(supported.msvc_version), repr(sdk_version)) + env = Environment(MSVC_VERSION={0}, MSVC_SDK_VERSION={1}, tools=['msvc']) + lib_path = env['ENV']['LIB'] + if '\\\\{2}\\\\' not in lib_path: + raise RuntimeError("{1} not found in lib_path " + lib_path) + """.format(repr(supported.msvc_version), repr(sdk_version), sdk_version) )) test.run(arguments='-Q -s', stdout='') @@ -93,8 +96,11 @@ if GE_VS2015_versions: test.write('SConstruct', textwrap.dedent( """ DefaultEnvironment(tools=[]) - env = Environment(MSVC_VERSION={}, MSVC_SCRIPT_ARGS={}, tools=['msvc']) - """.format(repr(supported.msvc_version), repr(sdk_version)) + env = Environment(MSVC_VERSION={0}, MSVC_SCRIPT_ARGS={1}, tools=['msvc']) + lib_path = env['ENV']['LIB'] + if '\\\\{2}\\\\' not in lib_path: + raise RuntimeError("{1} not found in lib_path " + lib_path) + """.format(repr(supported.msvc_version), repr(sdk_version), sdk_version) )) test.run(arguments='-Q -s', stdout='') |