summaryrefslogtreecommitdiff
path: root/test/option--W.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-12-15 06:35:05 +0000
committerSteven Knight <knight@baldmt.com>2009-12-15 06:35:05 +0000
commit28e693219177749dd9712140dd1a924dcb30cb39 (patch)
treeca33cdc9e3374ef2ac6542edddec954568eb75ea /test/option--W.py
parent1e8590fb7868ba7c0503b53b20a0693816ff40b5 (diff)
downloadscons-28e693219177749dd9712140dd1a924dcb30cb39.tar.gz
Add a TestSCons.option_not_yet_implemented() method and use it so
the tests of those options expect an exit status of 1.
Diffstat (limited to 'test/option--W.py')
-rw-r--r--test/option--W.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/option--W.py b/test/option--W.py
index 9f6fbe49..e29cd7cd 100644
--- a/test/option--W.py
+++ b/test/option--W.py
@@ -30,21 +30,16 @@ test = TestSCons.TestSCons()
test.write('SConstruct', "")
-test.run(arguments = '-W foo .',
- stderr = "Warning: the -W option is not yet implemented\n")
+test.option_not_yet_implemented('-W', 'foo .')
-test.run(arguments = '--what-if=foo .',
- stderr = "Warning: the --what-if option is not yet implemented\n")
+test.option_not_yet_implemented('--what-if', '=foo .')
-test.run(arguments = '--new-file=foo .',
- stderr = "Warning: the --new-file option is not yet implemented\n")
+test.option_not_yet_implemented('--new-file', '=foo .')
-test.run(arguments = '--assume-new=foo .',
- stderr = "Warning: the --assume-new option is not yet implemented\n")
+test.option_not_yet_implemented('--assume-new', '=foo .')
test.pass_test()
-
# Local Variables:
# tab-width:4
# indent-tabs-mode:nil