summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-09-06 18:20:23 (GMT)
committerEvan Martin <martine@danga.com>2012-09-06 18:20:23 (GMT)
commitcce1b9854832bec89d55ddc2df8d496968b958da (patch)
treef6373533f480171a938b6096b7de32763fefe545 /src
parentd82206d7eac1b360034f92875ecce455e0701cc9 (diff)
parente744221d48bdda031390a9a37c6e96ca3c658aa6 (diff)
downloadNinja-cce1b9854832bec89d55ddc2df8d496968b958da.zip
Ninja-cce1b9854832bec89d55ddc2df8d496968b958da.tar.gz
Ninja-cce1b9854832bec89d55ddc2df8d496968b958da.tar.bz2
Merge pull request #408 from nico/fix
Make sure no stale test file exists before running build log tests.
Diffstat (limited to 'src')
-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);