summaryrefslogtreecommitdiffstats
path: root/test/nonexistent.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2009-04-15 10:10:41 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2009-04-15 10:10:41 (GMT)
commita343ecc4655243e840f5b0cf62073b0698bd0a60 (patch)
treedeb733dcc336dbff51f1da0eb5ebac2a5566ae9a /test/nonexistent.py
parent90f3408e564e6f153511e6aaedebc98e44049ef9 (diff)
downloadSCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.zip
SCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.tar.gz
SCons-a343ecc4655243e840f5b0cf62073b0698bd0a60.tar.bz2
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/nonexistent.py')
-rw-r--r--test/nonexistent.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/nonexistent.py b/test/nonexistent.py
index 0a6947c..770f3b7 100644
--- a/test/nonexistent.py
+++ b/test/nonexistent.py
@@ -46,13 +46,14 @@ Dir('ddd')
""")
test.run(arguments = 'foo',
- stderr = "scons: \\*\\*\\* Do not know how to make target `foo'.( *Stop.)?\n",
+ stderr = "scons: \\*\\*\\* Do not know how to make File target `foo' \\(.*foo\\).( *Stop.)?\n",
status = 2,
match=TestSCons.match_re_dotall)
test.run(arguments = '-k foo/bar foo',
- stderr = "scons: *** Do not know how to make target `%s'.\n" % foo_bar,
- status = 2)
+ stderr = "scons: \\*\\*\\* Do not know how to make File target `%s' \\(.*foo.bar\\).\n" % foo_bar,
+ status = 2,
+ match=TestSCons.match_re_dotall)
test.run(arguments = "aaa.out",
stderr = "scons: *** [aaa.out] Source `aaa.in' not found, needed by target `aaa.out'.\n",
@@ -65,14 +66,15 @@ scons: *** [aaa.out] Source `aaa.in' not found, needed by target `aaa.out'.
status = 2)
test.run(arguments = '-k aaa.in bbb.in',
- stderr = """scons: *** Do not know how to make target `aaa.in'.
-scons: *** Do not know how to make target `bbb.in'.
+ stderr = """scons: \\*\\*\\* Do not know how to make File target `aaa.in' \\(.*aaa.in\\).
+scons: \\*\\*\\* Do not know how to make File target `bbb.in' \\(.*bbb.in\\).
""",
- status = 2)
+ status = 2,
+ match=TestSCons.match_re_dotall)
test.run(arguments = 'xxx',
- stderr = "scons: \\*\\*\\* Do not know how to make target `xxx'.( *Stop.)?\n",
+ stderr = "scons: \\*\\*\\* Do not know how to make File target `xxx' \\(.*xxx\\).( *Stop.)?\n",
status = 2,
match=TestSCons.match_re_dotall)