summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQingning Huo <qingninghuo@gmail.com>2011-09-06 21:19:45 (GMT)
committerQingning Huo <qingninghuo@gmail.com>2011-09-06 21:19:45 (GMT)
commitd0b249267d22ac03888ebe8a74f3945ca0c88559 (patch)
treecda449b355770ebd6a7709efdd239ed9a53e0f1b /src
parent8efe599247c762caa6da54a1c10e37c538319669 (diff)
downloadNinja-d0b249267d22ac03888ebe8a74f3945ca0c88559.zip
Ninja-d0b249267d22ac03888ebe8a74f3945ca0c88559.tar.gz
Ninja-d0b249267d22ac03888ebe8a74f3945ca0c88559.tar.bz2
Move a passing test from Errors to MultipleOutputs
Diffstat (limited to 'src')
-rw-r--r--src/parsers_test.cc21
1 files changed, 11 insertions, 10 deletions
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
@@ -316,16 +316,6 @@ TEST_F(ParserTest, Errors) {
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);
- string err;
EXPECT_FALSE(parser.Parse("rule cc\n command = foo\n othervar = bar\n",
&err));
EXPECT_EQ("line 3, col 3: unexpected variable 'othervar'", err);
@@ -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"