summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-19 18:16:29 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-19 15:22:01 (GMT)
commit6d6dfd17e83bbde57bee61a0956a73b12088a9d1 (patch)
treeb1c8e28dff87bc574cb193aa0ff24d19d50724c3 /src
parent94f4153da9dd2ad0c166568f273e9ba2f4928554 (diff)
downloadNinja-6d6dfd17e83bbde57bee61a0956a73b12088a9d1.zip
Ninja-6d6dfd17e83bbde57bee61a0956a73b12088a9d1.tar.gz
Ninja-6d6dfd17e83bbde57bee61a0956a73b12088a9d1.tar.bz2
Fix depfile parser test case line continuation
Escape newlines for line continuation in the SpecialChars test case. Otherwise the test does not cover valid Makefile syntax. The missing line continuation was tolerated by our parser but is never (not) produced by a real compiler.
Diffstat (limited to 'src')
-rw-r--r--src/depfile_parser_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/depfile_parser_test.cc b/src/depfile_parser_test.cc
index 824073f..e3eec07 100644
--- a/src/depfile_parser_test.cc
+++ b/src/depfile_parser_test.cc
@@ -119,10 +119,10 @@ TEST_F(DepfileParserTest, SpecialChars) {
// 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 \n"
-" openldap/slapd.d/cn=config/cn=schema/cn={0}core.ldif\n"
-" Fu\303\244ball\n"
+"C:/Program\\ Files\\ (x86)/Microsoft\\ crtdefs.h: \\\n"
+" en@quot.header~ t+t-x!=1 \\\n"
+" openldap/slapd.d/cn=config/cn=schema/cn={0}core.ldif\\\n"
+" Fu\303\244ball\\\n"
" a\\[1\\]b@2%c",
&err));
ASSERT_EQ("", err);