From e744221d48bdda031390a9a37c6e96ca3c658aa6 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 31 Aug 2012 22:56:11 -0700 Subject: [PATCH] Make sure no stale test file exists before running build log tests. --- src/build_log_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/build_log_test.cc b/src/build_log_test.cc index c465abc..1d42273 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); -- 2.7.4