From dd50fc658491b80d3526f90751acbf9651cd5ce9 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Fri, 17 May 2013 13:14:07 -0700 Subject: fix truncate compile error in ninja_test on windows --- src/deps_log_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deps_log_test.cc b/src/deps_log_test.cc index 0591736..3b32963 100644 --- a/src/deps_log_test.cc +++ b/src/deps_log_test.cc @@ -340,7 +340,8 @@ TEST_F(DepsLogTest, TruncatedRecovery) { // Shorten the file, corrupting the last record. struct stat st; ASSERT_EQ(0, stat(kTestFilename, &st)); - ASSERT_EQ(0, truncate(kTestFilename, st.st_size - 2)); + string err; + ASSERT_TRUE(Truncate(kTestFilename, st.st_size - 2, &err)); // Load the file again, add an entry. { -- cgit v0.12