summaryrefslogtreecommitdiffstats
path: root/test/option-v.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/option-v.py')
-rw-r--r--test/option-v.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/option-v.py b/test/option-v.py
index 6e7ca07..02b8f2c 100644
--- a/test/option-v.py
+++ b/test/option-v.py
@@ -14,13 +14,17 @@ test.write('SConstruct', "")
test.run(chdir = '.', arguments = '-v')
-test.fail_test(test.stderr() !=
- "Warning: the -v option is not yet implemented\n")
+expect = r"""SCons version \S+, by Steven Knight et al.
+Copyright 2001 Steven Knight
+"""
+
+test.fail_test(not test.match_re(test.stdout(), expect))
+test.fail_test(test.stderr() != "")
test.run(chdir = '.', arguments = '--version')
-test.fail_test(test.stderr() !=
- "Warning: the --version option is not yet implemented\n")
+test.fail_test(not test.match_re(test.stdout(), expect))
+test.fail_test(test.stderr() != "")
test.pass_test()