diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-04-15 10:10:41 +0000 |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2009-04-15 10:10:41 +0000 |
commit | c861477913514c785dbce9da255fb9ed9d9760db (patch) | |
tree | deb733dcc336dbff51f1da0eb5ebac2a5566ae9a /test/builderrors.py | |
parent | f1113b336c4bb8b7b513b94993a7f7814e2d9c9a (diff) | |
download | scons-c861477913514c785dbce9da255fb9ed9d9760db.tar.gz |
Per the bug report, this patch improves the "Do not know how to make
target X" to say what type of node is being built, and the full path (if
it's a file or dir).
Diffstat (limited to 'test/builderrors.py')
-rw-r--r-- | test/builderrors.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/builderrors.py b/test/builderrors.py index 72b856f3..e5d8866e 100644 --- a/test/builderrors.py +++ b/test/builderrors.py @@ -201,6 +201,16 @@ test.run(status=2, stderr=None) test.must_not_contain_any_line(test.stderr(), ['Exception', 'Traceback']) +# Bug #1053: Alias is called "all", but default is the File "all" +test.write('SConstruct', """ +env = Environment() +env.Default("all") +env.Alias("all", env.Install("dir", "file.txt")) +""") +test.run(status=2, match=TestSCons.match_re, stderr="""\ +scons: \*\*\* Do not know how to make File target `all' \(.*all\). Stop. +""") + # No tests failed; OK. test.pass_test() |