summaryrefslogtreecommitdiffstats
path: root/test/nonexistent.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/nonexistent.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/nonexistent.py')
-rw-r--r--test/nonexistent.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/nonexistent.py b/test/nonexistent.py
index bacc6ce..8f2c63e 100644
--- a/test/nonexistent.py
+++ b/test/nonexistent.py
@@ -32,11 +32,13 @@ test = TestSCons.TestSCons()
test.write('SConstruct', "")
test.run(arguments = 'foo',
- stderr = "scons: *** Do not know how to make target `foo'. Stop.\n")
+ stderr = "scons: *** Do not know how to make target `foo'. Stop.\n",
+ status = 2)
test.run(arguments = '-k foo/bar foo',
stderr = """scons: *** Do not know how to make target `foo/bar'.
scons: *** Do not know how to make target `foo'.
-""")
+""",
+ status = 2)
test.pass_test()