summaryrefslogtreecommitdiff
path: root/test/option--.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 +0000
committerSteven Knight <knight@baldmt.com>2001-10-28 11:52:08 +0000
commite5410ac77d8740375b43cb154bedf7219279bf67 (patch)
tree75228cd5740c78a3a2e096e5f44b07e85d2e5d54 /test/option--.py
parenta140305276c1dc47997c54a76e5b586b1f82b4fb (diff)
downloadscons-e5410ac77d8740375b43cb154bedf7219279bf67.tar.gz
Fix a number of small problems in tests.
Diffstat (limited to 'test/option--.py')
-rw-r--r--test/option--.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/option--.py b/test/option--.py
index 9fca2bd9..5370488b 100644
--- a/test/option--.py
+++ b/test/option--.py
@@ -48,9 +48,13 @@ env.MyBuild(target = '-f1.out', source = 'f1.in')
env.MyBuild(target = '-f2.out', source = 'f2.in')
""" % python)
+test.write('f1.in', "f1.in\n")
+test.write('f2.in', "f2.in\n")
+
expect = "%s build.py -f1.out\n%s build.py -f2.out\n" % (python, python)
test.run(arguments = '-- -f1.out -f2.out', stdout = expect)
+
test.fail_test(not os.path.exists(test.workpath('-f1.out')))
test.fail_test(not os.path.exists(test.workpath('-f2.out')))