diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:27:01 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:27:01 (GMT) |
commit | d27d21a8c38debfd69c1deaa302cdb500511e0af (patch) | |
tree | 43e35e5b2ed2765db42af7944e48c1cf2593e106 /src/graph_test.cc | |
parent | f66f2e80eee4a9df52b9f3f0298548c039d1d122 (diff) | |
download | Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.zip Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.gz Ninja-d27d21a8c38debfd69c1deaa302cdb500511e0af.tar.bz2 |
make Node::dirty_ private
Diffstat (limited to 'src/graph_test.cc')
-rw-r--r-- | src/graph_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/graph_test.cc b/src/graph_test.cc index 8ab921e..ab2213a 100644 --- a/src/graph_test.cc +++ b/src/graph_test.cc @@ -34,7 +34,7 @@ TEST_F(GraphTest, MissingImplicit) { // A missing implicit dep *should* make the output dirty. // (In fact, a build will fail.) // This is a change from prior semantics of ninja. - EXPECT_TRUE(GetNode("out")->dirty_); + EXPECT_TRUE(GetNode("out")->dirty()); } TEST_F(GraphTest, ModifiedImplicit) { @@ -50,7 +50,7 @@ TEST_F(GraphTest, ModifiedImplicit) { ASSERT_EQ("", err); // A modified implicit dep should make the output dirty. - EXPECT_TRUE(GetNode("out")->dirty_); + EXPECT_TRUE(GetNode("out")->dirty()); } TEST_F(GraphTest, FunkyMakefilePath) { @@ -71,7 +71,7 @@ TEST_F(GraphTest, FunkyMakefilePath) { // implicit.h has changed, though our depfile refers to it with a // non-canonical path; we should still find it. - EXPECT_TRUE(GetNode("out.o")->dirty_); + EXPECT_TRUE(GetNode("out.o")->dirty()); } TEST_F(GraphTest, ExplicitImplicit) { @@ -95,7 +95,7 @@ TEST_F(GraphTest, ExplicitImplicit) { // We have both an implicit and an explicit dep on implicit.h. // The implicit dep should "win" (in the sense that it should cause // the output to be dirty). - EXPECT_TRUE(GetNode("out.o")->dirty_); + EXPECT_TRUE(GetNode("out.o")->dirty()); } TEST_F(GraphTest, PathWithCurrentDirectory) { @@ -113,7 +113,7 @@ TEST_F(GraphTest, PathWithCurrentDirectory) { EXPECT_TRUE(edge->RecomputeDirty(&state_, &fs_, &err)); ASSERT_EQ("", err); - EXPECT_FALSE(GetNode("out.o")->dirty_); + EXPECT_FALSE(GetNode("out.o")->dirty()); } TEST_F(GraphTest, RootNodes) { |