summaryrefslogtreecommitdiffstats
path: root/src/manifest_parser_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-04-05 17:27:22 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 22:02:46 (GMT)
commitadc4ee81443dbfae8584456c04ea1ba383da3d01 (patch)
tree7d2a8469583a476954b5adcd107e3703d7dd20d2 /src/manifest_parser_test.cc
parentc47f2cedbb8f44182a72343d0c71f5af5196d274 (diff)
downloadNinja-adc4ee81443dbfae8584456c04ea1ba383da3d01.zip
Ninja-adc4ee81443dbfae8584456c04ea1ba383da3d01.tar.gz
Ninja-adc4ee81443dbfae8584456c04ea1ba383da3d01.tar.bz2
make it an error for now to have multiple outputs with depslog
Diffstat (limited to 'src/manifest_parser_test.cc')
-rw-r--r--src/manifest_parser_test.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/manifest_parser_test.cc b/src/manifest_parser_test.cc
index 4ac093f..76d235d 100644
--- a/src/manifest_parser_test.cc
+++ b/src/manifest_parser_test.cc
@@ -71,6 +71,7 @@ TEST_F(ParserTest, RuleAttributes) {
"rule cat\n"
" command = a\n"
" depfile = a\n"
+" deps = a\n"
" description = a\n"
" generator = a\n"
" restat = a\n"
@@ -599,6 +600,17 @@ TEST_F(ParserTest, MultipleOutputs) {
EXPECT_EQ("", err);
}
+TEST_F(ParserTest, MultipleOutputsWithDeps) {
+ State state;
+ ManifestParser parser(&state, NULL);
+ string err;
+ EXPECT_FALSE(parser.ParseTest("rule cc\n command = foo\n deps = gcc\n"
+ "build a.o b.o: cc c.cc\n",
+ &err));
+ EXPECT_EQ("input:5: multiple outputs aren't (yet?) supported by depslog; "
+ "bring this up on the mailing list if it affects you\n", err);
+}
+
TEST_F(ParserTest, SubNinja) {
files_["test.ninja"] =
"var = inner\n"