summaryrefslogtreecommitdiffstats
path: root/test/Alias.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-06 22:27:28 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-06 22:27:28 (GMT)
commita2ceacbe77db1b308f26454477ae3b1f1139eac8 (patch)
tree8f1532baef4ea475eb5ff7bff4e74b15e7d48a27 /test/Alias.py
parent06b66d7da2547d860be7a124c54d3ddf2ee964e1 (diff)
downloadSCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.zip
SCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.tar.gz
SCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.tar.bz2
Raise an error if a builder is called multiple times for a given target, unless the builder is marked as multicall safe. (Anthony Roach)
Diffstat (limited to 'test/Alias.py')
-rw-r--r--test/Alias.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Alias.py b/test/Alias.py
index e6de2c0..6dae8a7 100644
--- a/test/Alias.py
+++ b/test/Alias.py
@@ -51,6 +51,8 @@ SConscript('sub1/SConscript', "env")
SConscript('sub2/SConscript', "env")
env.Alias('foo', ['f2.out', 'sub1'])
env.Alias('bar', ['sub2', 'f3.out'])
+env.Alias('blat', ['sub2', 'f3.out'])
+env.Alias('blat', ['f2.out', 'sub1'])
env.Depends('f1.out', 'bar')
""" % python)
@@ -107,4 +109,12 @@ test.fail_test(not os.path.exists(test.workpath('sub2', 'f9.out')))
test.up_to_date(arguments = 'f1.out')
+os.unlink(test.workpath('f2.out'))
+os.unlink(test.workpath('f3.out'))
+
+test.run(arguments = 'blat')
+
+test.fail_test(not os.path.exists(test.workpath('f2.out')))
+test.fail_test(not os.path.exists(test.workpath('f3.out')))
+
test.pass_test()