summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Geary <richardg.work@gmail.com>2013-09-07 14:03:00 (GMT)
committerRichard Geary <richardg.work@gmail.com>2013-09-07 14:03:00 (GMT)
commite674c51e4dfd38c8f7b318a98e1ee7637af9a14e (patch)
tree0e8f53df9fbd6cb088ef8088ca41e349b7238736 /src
parent834e21393fa2782721f889f2ebebd5c3f3b568b8 (diff)
downloadNinja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.zip
Ninja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.tar.gz
Ninja-e674c51e4dfd38c8f7b318a98e1ee7637af9a14e.tar.bz2
Fix for build test for BuildWithDepsLogTest.RestatMissingDepfileDepslog
Diffstat (limited to 'src')
-rw-r--r--src/build_test.cc5
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)";
}