summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-27 21:51:15 (GMT)
committerEvan Martin <martine@danga.com>2011-12-27 21:51:15 (GMT)
commit3abfcdc5b02602091a54a79b3acff2462225f8b9 (patch)
tree93dc9fa6bb1080f7db3748a436bc621315fa7361 /src
parentfe7e51531e5df3149538007c40b8d115ceebb805 (diff)
downloadNinja-3abfcdc5b02602091a54a79b3acff2462225f8b9.zip
Ninja-3abfcdc5b02602091a54a79b3acff2462225f8b9.tar.gz
Ninja-3abfcdc5b02602091a54a79b3acff2462225f8b9.tar.bz2
add (failing) test involving spaces in depfiles
Diffstat (limited to 'src')
-rw-r--r--src/depfile_parser_test.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/depfile_parser_test.cc b/src/depfile_parser_test.cc
index f867c8e..3549f97 100644
--- a/src/depfile_parser_test.cc
+++ b/src/depfile_parser_test.cc
@@ -72,3 +72,16 @@ TEST_F(DepfileParserTest, BackSlashes) {
parser_.out_.AsString());
EXPECT_EQ(4u, parser_.ins_.size());
}
+
+TEST_F(DepfileParserTest, DISABLED_Spaces) {
+ string err;
+ EXPECT_TRUE(Parse(
+"foo\\ bar: a\\ b a b",
+ &err));
+ ASSERT_EQ("", err);
+ EXPECT_EQ("foo bar",
+ parser_.out_.AsString());
+ ASSERT_EQ(3u, parser_.ins_.size());
+ EXPECT_EQ("a b",
+ parser_.ins_[0].AsString());
+}