From: Qingning Huo Date: Tue, 6 Sep 2011 21:19:45 +0000 (+0100) Subject: Move a passing test from Errors to MultipleOutputs X-Git-Tag: release-120715~290^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0b249267d22ac03888ebe8a74f3945ca0c88559;p=platform%2Fupstream%2Fninja.git Move a passing test from Errors to MultipleOutputs --- diff --git a/src/parsers_test.cc b/src/parsers_test.cc index 12f09b0..5e2746d 100644 --- a/src/parsers_test.cc +++ b/src/parsers_test.cc @@ -312,16 +312,6 @@ TEST_F(ParserTest, Errors) { EXPECT_EQ("line 1, col 6: expected rule name, got unknown '%'", err); } - { - State state; - ManifestParser parser(&state, NULL); - string err; - EXPECT_TRUE(parser.Parse("rule cc\n command = foo\n depfile = bar\n" - "build a.o b.o: cc c.cc\n", - &err)); - EXPECT_EQ("", err); - } - { State state; ManifestParser parser(&state, NULL); @@ -371,6 +361,17 @@ TEST_F(ParserTest, Errors) { } } +TEST_F(ParserTest, MultipleOutputs) +{ + State state; + ManifestParser parser(&state, NULL); + string err; + EXPECT_TRUE(parser.Parse("rule cc\n command = foo\n depfile = bar\n" + "build a.o b.o: cc c.cc\n", + &err)); + EXPECT_EQ("", err); +} + TEST_F(ParserTest, SubNinja) { files_["test.ninja"] = "var = inner\n"