diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2024-02-29 18:03:15 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2024-02-29 18:03:15 (GMT) |
commit | ab510c7a8cccbea0ea2c82531dc23893b551d55e (patch) | |
tree | 444b01c22e947f857605a5af269452eb0f81bdc9 | |
parent | bf6409ad5aa0c92db0add01c959e276fdcc7fc23 (diff) | |
download | Ninja-ab510c7a8cccbea0ea2c82531dc23893b551d55e.zip Ninja-ab510c7a8cccbea0ea2c82531dc23893b551d55e.tar.gz Ninja-ab510c7a8cccbea0ea2c82531dc23893b551d55e.tar.bz2 |
Fix comparision error between pointer and NULL
-rw-r--r-- | src/build_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index c9cc647..429e71c 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -504,7 +504,7 @@ TEST_F(PlanTest, PriorityWithoutBuildLog) { "a1", "a0", "b0", "c0", "out"}; for (int i = 0; i < n_edges; ++i) { Edge* edge = plan_.FindWork(); - ASSERT_NE(edge, NULL); + ASSERT_TRUE(edge != nullptr); EXPECT_EQ(expected_order[i], edge->outputs_[0]->path()); std::string err; |