diff options
author | Richard Geary <richardg.work@gmail.com> | 2013-09-07 14:03:00 (GMT) |
---|---|---|
committer | Richard Geary <richardg.work@gmail.com> | 2013-09-07 14:03:00 (GMT) |
commit | e674c51e4dfd38c8f7b318a98e1ee7637af9a14e (patch) | |
tree | 0e8f53df9fbd6cb088ef8088ca41e349b7238736 /src/build_test.cc | |
parent | 834e21393fa2782721f889f2ebebd5c3f3b568b8 (diff) | |
download | Ninja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.zip Ninja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.tar.gz Ninja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.tar.bz2 |
Fix for build test for BuildWithDepsLogTest.RestatMissingDepfileDepslog
Diffstat (limited to 'src/build_test.cc')
-rw-r--r-- | src/build_test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index 4b1c829..3c117f4 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -487,7 +487,10 @@ void BuildTest::RebuildTarget(const string& target, const char* manifest, command_runner_.commands_ran_.clear(); builder.command_runner_.reset(&command_runner_); - bool build_res = builder.Build(&err); + bool build_res = true; + if (!builder.AlreadyUpToDate()) { + build_res = builder.Build(&err); + } builder.command_runner_.release(); EXPECT_TRUE(build_res) << "builder.Build(&err)"; } |