From ab510c7a8cccbea0ea2c82531dc23893b551d55e Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Thu, 29 Feb 2024 19:03:15 +0100 Subject: [PATCH] Fix comparision error between pointer and NULL --- src/build_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_test.cc b/src/build_test.cc index c9cc6478eb..429e71cf16 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;