diff options
author | Evan Martin <martine@danga.com> | 2013-04-08 17:20:58 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-09 04:04:55 (GMT) |
commit | 0397155218f3d311200ec4e25786028f14c53c6a (patch) | |
tree | 7e68d3f5403c4e6979541c2c9922d2248163467c /src/test.cc | |
parent | 8ec425abe38f468bc4bbb4c95d78fab3b93d2141 (diff) | |
download | Ninja-0397155218f3d311200ec4e25786028f14c53c6a.zip Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.gz Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.bz2 |
add a test for the "deps out of date" case
It touched the various remaining XXXes in the code, hooray.
Diffstat (limited to 'src/test.cc')
-rw-r--r-- | src/test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc index c48ca82..45a9226 100644 --- a/src/test.cc +++ b/src/test.cc @@ -74,7 +74,11 @@ string GetSystemTempDir() { } // anonymous namespace StateTestWithBuiltinRules::StateTestWithBuiltinRules() { - AssertParse(&state_, + AddCatRule(&state_); +} + +void StateTestWithBuiltinRules::AddCatRule(State* state) { + AssertParse(state, "rule cat\n" " command = cat $in > $out\n"); } |