diff options
author | Evan Martin <martine@danga.com> | 2011-12-27 21:51:15 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-27 21:51:15 (GMT) |
commit | 3abfcdc5b02602091a54a79b3acff2462225f8b9 (patch) | |
tree | 93dc9fa6bb1080f7db3748a436bc621315fa7361 /src | |
parent | fe7e51531e5df3149538007c40b8d115ceebb805 (diff) | |
download | Ninja-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.cc | 13 |
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()); +} |