projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c46f3cb
)
Add a test for quoting spaces in expanded $in and $out.
author
Jeremy Apthorp
<jeremya@chromium.org>
Wed, 4 Jan 2012 23:00:24 +0000
(10:00 +1100)
committer
Jeremy Apthorp
<jeremya@chromium.org>
Wed, 4 Jan 2012 23:01:00 +0000
(10:01 +1100)
src/graph_test.cc
patch
|
blob
|
history
diff --git
a/src/graph_test.cc
b/src/graph_test.cc
index
c1a0f93
..
07a1936
100644
(file)
--- a/
src/graph_test.cc
+++ b/
src/graph_test.cc
@@
-131,3
+131,12
@@
TEST_F(GraphTest, RootNodes) {
EXPECT_EQ("out", name.substr(0, 3));
}
}
+
+TEST_F(GraphTest, VarInOutQuoteSpaces) {
+ ASSERT_NO_FATAL_FAILURE(AssertParse(&state_,
+"build a$ b: cat nospace with$ space nospace2\n"));
+
+ Edge* edge = GetNode("a b")->in_edge();
+ EXPECT_EQ("cat nospace \"with space\" nospace2 > \"a b\"",
+ edge->EvaluateCommand());
+}