diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2022-05-05 13:57:01 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2022-05-05 13:57:01 (GMT) |
commit | eb8d18762ce2ff9d71113e0d440bec592e9032a5 (patch) | |
tree | e190f6e944bc36d5bd7702fc2ace659295a086dd /test | |
parent | a2e1069c5addebfbbc1ca78181c13b0aab75c780 (diff) | |
download | SCons-eb8d18762ce2ff9d71113e0d440bec592e9032a5.zip SCons-eb8d18762ce2ff9d71113e0d440bec592e9032a5.tar.gz SCons-eb8d18762ce2ff9d71113e0d440bec592e9032a5.tar.bz2 |
Test MSVCUseSettingsError exception raised for type error
Diffstat (limited to 'test')
-rw-r--r-- | test/MSVC/MSVC_USE_SETTINGS.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MSVC/MSVC_USE_SETTINGS.py b/test/MSVC/MSVC_USE_SETTINGS.py index 61db2b7..97be59f 100644 --- a/test/MSVC/MSVC_USE_SETTINGS.py +++ b/test/MSVC/MSVC_USE_SETTINGS.py @@ -59,6 +59,14 @@ test.run(arguments = "--warn=visual-c-missing .", status=0, stderr=None) test.must_contain_all(test.stderr(), "Could not find MSVC compiler 'cl'") +test.write('SConstruct', """ +env = Environment(MSVC_USE_SETTINGS='dict or None') +""" % locals()) + +test.run(arguments = ".", status=2, stderr=None) + +test.must_contain_all(test.stderr(), "MSVCUseSettingsError: MSVC_USE_SETTINGS type error") + test.pass_test() # Local Variables: |