summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/build_log_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build_log_test.cc b/src/build_log_test.cc
index 9af95a3..a6c2a86 100644
--- a/src/build_log_test.cc
+++ b/src/build_log_test.cc
@@ -30,6 +30,8 @@ const char kTestFilename[] = "BuildLogTest-tempfile";
struct BuildLogTest : public StateTestWithBuiltinRules {
virtual void SetUp() {
+ // In case a crashing test left a stale file behind.
+ unlink(kTestFilename);
}
virtual void TearDown() {
unlink(kTestFilename);