diff options
Diffstat (limited to 'test/MSVC/no_msvc.py')
-rw-r--r-- | test/MSVC/no_msvc.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/MSVC/no_msvc.py b/test/MSVC/no_msvc.py index d1161c6..4ab7dd8 100644 --- a/test/MSVC/no_msvc.py +++ b/test/MSVC/no_msvc.py @@ -48,4 +48,24 @@ test.run(arguments='-Q -s') if 'MSVC_VERSION=None' not in test.stdout(): test.fail_test() -test.pass_test()
\ No newline at end of file +# test msvc version number request with no msvc's +test.file_fixture('no_msvc/no_msvcs_sconstruct_version.py', 'SConstruct') +test.run(arguments='-Q -s', status=2, stderr=r"^.*MSVCVersionNotFound.+", match=TestSCons.match_re_dotall) + +# test that MSVCVersionNotFound is not raised for default msvc tools +# when a non-msvc tool list is used +test.subdir('site_scons', ['site_scons', 'site_tools']) + +test.write(['site_scons', 'site_tools', 'myignoredefaultmsvctool.py'], """ +import SCons.Tool +def generate(env): + env['MYIGNOREDEFAULTMSVCTOOL']='myignoredefaultmsvctool' +def exists(env): + return 1 +""") + +test.file_fixture('no_msvc/no_msvcs_sconstruct_tools.py', 'SConstruct') +test.run(arguments='-Q -s') + +test.pass_test() + |