From 93817e544f18c54d8e8da6d5d3a457e94911b5f1 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Mon, 2 May 2011 12:18:35 -0700 Subject: fix unit test --- src/ninja.h | 2 +- src/ninja_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ninja.h b/src/ninja.h index 8927768..b73d7be 100644 --- a/src/ninja.h +++ b/src/ninja.h @@ -52,7 +52,7 @@ struct DiskInterface { /// Remove the file named @a path. It behaves like 'rm -f path' so no errors /// are reported if it does not exists. /// @returns 0 if the file has been removed, - /// 1 if the file does not exists, and + /// 1 if the file does not exist, and /// -1 if an error occurs. virtual int RemoveFile(const string& path) = 0; diff --git a/src/ninja_test.cc b/src/ninja_test.cc index 8d53343..ed22709 100644 --- a/src/ninja_test.cc +++ b/src/ninja_test.cc @@ -264,5 +264,5 @@ TEST_F(DiskInterfaceTest, RemoveFile) { ASSERT_EQ(0, system(cmd.c_str())); EXPECT_EQ(0, disk_.RemoveFile(kFileName)); EXPECT_EQ(1, disk_.RemoveFile(kFileName)); - EXPECT_EQ(-1, disk_.RemoveFile("does not exist")); + EXPECT_EQ(1, disk_.RemoveFile("does not exist")); } -- cgit v0.12