summaryrefslogtreecommitdiffstats
path: root/test/option-unknown.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-07 21:07:06 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-07 21:07:06 (GMT)
commit8b2cb4f6b3efbb50b06e7f368ad63267227f08e5 (patch)
treec549b9adf25622d45b5a51f7e7771838a459d2cf /test/option-unknown.py
parentd2c0e3aa84d0355f592799ce260159e8c8679f88 (diff)
downloadSCons-8b2cb4f6b3efbb50b06e7f368ad63267227f08e5.zip
SCons-8b2cb4f6b3efbb50b06e7f368ad63267227f08e5.tar.gz
SCons-8b2cb4f6b3efbb50b06e7f368ad63267227f08e5.tar.bz2
Win32 portability: Fix error status passing back when calling sys.exit().
Diffstat (limited to 'test/option-unknown.py')
-rw-r--r--test/option-unknown.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/option-unknown.py b/test/option-unknown.py
index 68848a9..496a7e0 100644
--- a/test/option-unknown.py
+++ b/test/option-unknown.py
@@ -34,9 +34,17 @@ test = TestSCons.TestSCons(match = TestCmd.match_re)
test.write('SConstruct', "")
test.run(arguments = '-Z',
- stderr = '\nSCons error: option -Z not recognized\nFile "\S+", line \d+, in short_has_arg\n')
+ stderr = """
+SCons error: option -Z not recognized
+File "\S+", line \d+, in short_has_arg
+""",
+ status = 2)
test.run(arguments = '--ZizzerZazzerZuzz',
- stderr = '\nSCons error: option --ZizzerZazzerZuzz not recognized\nFile "\S+", line \d+, in long_has_args\n')
+ stderr = """
+SCons error: option --ZizzerZazzerZuzz not recognized
+File "\S+", line \d+, in long_has_args
+""",
+ status = 2)
test.pass_test()