summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-03-30 23:36:47 (GMT)
committerEvan Martin <martine@danga.com>2013-03-30 23:36:47 (GMT)
commit7ab6dcbdb6447861eefafc47fc3e10f3273cede2 (patch)
treeed5e0cf81b20d03a58a12f6ab8c919514ea40536 /src/depfile_parser_test.cc
parente2e7a18953723e678b5280a4525ab8173fec08c9 (diff)
downloadNinja-7ab6dcbdb6447861eefafc47fc3e10f3273cede2.zip
Ninja-7ab6dcbdb6447861eefafc47fc3e10f3273cede2.tar.gz
Ninja-7ab6dcbdb6447861eefafc47fc3e10f3273cede2.tar.bz2
allow paths with '!' in depfiles
See funny paths in https://github.com/google/libcxx/tree/master/test/iterators/stream.iterators/istreambuf.iterator/
Diffstat (limited to 'src/depfile_parser_test.cc')
-rw-r--r--src/depfile_parser_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/depfile_parser_test.cc b/src/depfile_parser_test.cc
index 93d42db..552975c 100644
--- a/src/depfile_parser_test.cc
+++ b/src/depfile_parser_test.cc
@@ -104,10 +104,12 @@ TEST_F(DepfileParserTest, Escapes) {
}
TEST_F(DepfileParserTest, SpecialChars) {
+ // See filenames like istreambuf.iterator_op!= in
+ // https://github.com/google/libcxx/tree/master/test/iterators/stream.iterators/istreambuf.iterator/
string err;
EXPECT_TRUE(Parse(
"C:/Program\\ Files\\ (x86)/Microsoft\\ crtdefs.h: \n"
-" en@quot.header~ t+t-x=1",
+" en@quot.header~ t+t-x!=1",
&err));
ASSERT_EQ("", err);
EXPECT_EQ("C:/Program Files (x86)/Microsoft crtdefs.h",
@@ -115,7 +117,7 @@ TEST_F(DepfileParserTest, SpecialChars) {
ASSERT_EQ(2u, parser_.ins_.size());
EXPECT_EQ("en@quot.header~",
parser_.ins_[0].AsString());
- EXPECT_EQ("t+t-x=1",
+ EXPECT_EQ("t+t-x!=1",
parser_.ins_[1].AsString());
}