From: Nico Weber Date: Sat, 1 Sep 2012 05:56:11 +0000 (-0700) Subject: Make sure no stale test file exists before running build log tests. X-Git-Tag: v1.0.0^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e744221d48bdda031390a9a37c6e96ca3c658aa6;p=platform%2Fupstream%2Fninja.git Make sure no stale test file exists before running build log tests. --- 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);