diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-05-07 02:35:22 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-05-07 02:35:22 (GMT) |
commit | b1aa01e14e21176f0dd33919fae528e26280dec4 (patch) | |
tree | fe69ac5dfa2a68142e855ef61941bbe275772b6d /test/MSVC | |
parent | f69171690627bd16c8b1577731ca725fdbf50b69 (diff) | |
download | SCons-b1aa01e14e21176f0dd33919fae528e26280dec4.zip SCons-b1aa01e14e21176f0dd33919fae528e26280dec4.tar.gz SCons-b1aa01e14e21176f0dd33919fae528e26280dec4.tar.bz2 |
MSVC: show valid $TARGET_ARCH values when invalid arch passed in.
Diffstat (limited to 'test/MSVC')
-rw-r--r-- | test/MSVC/TARGET_ARCH.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/MSVC/TARGET_ARCH.py b/test/MSVC/TARGET_ARCH.py index 963e2a5..d6d8b43 100644 --- a/test/MSVC/TARGET_ARCH.py +++ b/test/MSVC/TARGET_ARCH.py @@ -25,7 +25,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" """ -Test the ability to configure the $PCHCOM construction variable. +Test the ability to configure the $TARGET_ARCH construction variable. """ import TestSCons @@ -48,6 +48,17 @@ env_32 = Environment(tools=['default', 'msvc'], test.run(arguments = ".") +# test.pass_test() + +test.write('SConstruct', """ +env_xx = Environment(tools=['default', 'msvc'], + TARGET_ARCH = 'nosucharch') +""" % locals()) + +test.run(arguments = ".", status=2, stderr=None) +test.must_contain_any_line(test.stderr(), "Unrecognized target architecture") +test.must_contain_any_line(test.stderr(), "Valid architectures") + test.pass_test() # Local Variables: |