diff options
author | Evan Martin <martine@danga.com> | 2012-09-06 18:20:23 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-09-06 18:20:23 (GMT) |
commit | cce1b9854832bec89d55ddc2df8d496968b958da (patch) | |
tree | f6373533f480171a938b6096b7de32763fefe545 /src/build_log_test.cc | |
parent | d82206d7eac1b360034f92875ecce455e0701cc9 (diff) | |
parent | e744221d48bdda031390a9a37c6e96ca3c658aa6 (diff) | |
download | Ninja-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/build_log_test.cc')
-rw-r--r-- | src/build_log_test.cc | 2 |
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); |