summaryrefslogtreecommitdiffstats
path: root/src/build_test.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-01-15 02:00:52 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 22:02:08 (GMT)
commitc3c1b3fda8b415e917b2762526c0c86e099b4300 (patch)
treeaabdf6eee5d92d9c307c5bad67c380d90244f3c1 /src/build_test.cc
parente223be80b6d308d64674ec884df461fe5b8e42e6 (diff)
downloadNinja-c3c1b3fda8b415e917b2762526c0c86e099b4300.zip
Ninja-c3c1b3fda8b415e917b2762526c0c86e099b4300.tar.gz
Ninja-c3c1b3fda8b415e917b2762526c0c86e099b4300.tar.bz2
remove depfiles files as they're parsed
Diffstat (limited to 'src/build_test.cc')
-rw-r--r--src/build_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build_test.cc b/src/build_test.cc
index 3617439..bcd4d2e 100644
--- a/src/build_test.cc
+++ b/src/build_test.cc
@@ -762,6 +762,9 @@ TEST_F(BuildTest, OrderOnlyDeps) {
fs_.Tick();
+ // Recreate the depfile, as it should have been deleted by the build.
+ fs_.Create("foo.o.d", "foo.o: blah.h bar.h\n");
+
// implicit dep dirty, expect a rebuild.
fs_.Create("blah.h", "");
fs_.Create("bar.h", "");
@@ -774,6 +777,9 @@ TEST_F(BuildTest, OrderOnlyDeps) {
fs_.Tick();
+ // Recreate the depfile, as it should have been deleted by the build.
+ fs_.Create("foo.o.d", "foo.o: blah.h bar.h\n");
+
// order only dep dirty, no rebuild.
fs_.Create("otherfile", "");
command_runner_.commands_ran_.clear();