summaryrefslogtreecommitdiffstats
path: root/test/MSVC/TARGET_ARCH.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/TARGET_ARCH.py')
-rw-r--r--test/MSVC/TARGET_ARCH.py13
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: