summaryrefslogtreecommitdiffstats
path: root/src/test.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2014-11-10 20:00:16 (GMT)
committerScott Graham <scottmg@chromium.org>2014-11-10 20:00:16 (GMT)
commitc47506449cd4f6e44a7d43d9b7ecb33f3b448c16 (patch)
tree19868b1bc8634655d27dd73d1c9ad284c2816e04 /src/test.cc
parentfccce3f6731276f369e4454c59556998cdbb22d4 (diff)
downloadNinja-c47506449cd4f6e44a7d43d9b7ecb33f3b448c16.zip
Ninja-c47506449cd4f6e44a7d43d9b7ecb33f3b448c16.tar.gz
Ninja-c47506449cd4f6e44a7d43d9b7ecb33f3b448c16.tar.bz2
make all GetNode explicit, add DepsLog canonicalize test
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc
index 560ef3a..f667fef 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -89,7 +89,8 @@ void StateTestWithBuiltinRules::AddCatRule(State* state) {
}
Node* StateTestWithBuiltinRules::GetNode(const string& path) {
- return state_.GetNode(path);
+ EXPECT_FALSE(strpbrk(path.c_str(), "/\\"));
+ return state_.GetNode(path, 0);
}
void AssertParse(State* state, const char* input) {