summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser_test.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-04-02 16:39:05 (GMT)
committerNico Weber <nicolasweber@gmx.de>2013-04-02 16:39:07 (GMT)
commite2701da32d223f2ce165f2e59c2c396da80debc6 (patch)
tree37235867d7eee7e7438c1a46d0d7cb3a308f6dcb /src/depfile_parser_test.cc
parent7ab6dcbdb6447861eefafc47fc3e10f3273cede2 (diff)
downloadNinja-e2701da32d223f2ce165f2e59c2c396da80debc6.zip
Ninja-e2701da32d223f2ce165f2e59c2c396da80debc6.tar.gz
Ninja-e2701da32d223f2ce165f2e59c2c396da80debc6.tar.bz2
Dollar signs in depfiles are escaped as "$$", not "\$".
See http://llvm.org/PR15642. I checked that gcc does produce depfiles containing "$$" for files with "$" signs in their name (and as of r178540, so does clang). I also checked that .d files that escape dollar signs with "\$" are not read correctly by make.
Diffstat (limited to 'src/depfile_parser_test.cc')
-rw-r--r--src/depfile_parser_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depfile_parser_test.cc b/src/depfile_parser_test.cc
index 552975c..0f6771a 100644
--- a/src/depfile_parser_test.cc
+++ b/src/depfile_parser_test.cc
@@ -95,7 +95,7 @@ TEST_F(DepfileParserTest, Escapes) {
// it through.
string err;
EXPECT_TRUE(Parse(
-"\\!\\@\\#\\$\\%\\^\\&\\\\",
+"\\!\\@\\#$$\\%\\^\\&\\\\",
&err));
ASSERT_EQ("", err);
EXPECT_EQ("\\!\\@#$\\%\\^\\&\\",