From 7bb0be99f81ebd1c5e36de2199ac97447d93c25a Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Wed, 1 Jul 2026 20:48:04 -0700 Subject: [PATCH] Test passing case PiperOrigin-RevId: 941442374 --- tcmalloc/huge_allocator.cc | 2 ++ tcmalloc/testing/profile_test.cc | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tcmalloc/huge_allocator.cc b/tcmalloc/huge_allocator.cc index d7d090c28..24be22fee 100644 --- a/tcmalloc/huge_allocator.cc +++ b/tcmalloc/huge_allocator.cc @@ -26,6 +26,8 @@ GOOGLE_MALLOC_SECTION_BEGIN namespace tcmalloc { namespace tcmalloc_internal { +void foo() {} + void HugeAllocator::Print(Printer& out) { out.printf("HugeAllocator: contiguous, unbacked hugepage(s)\n"); free_.Print(out); diff --git a/tcmalloc/testing/profile_test.cc b/tcmalloc/testing/profile_test.cc index 124a61b25..596e41b05 100644 --- a/tcmalloc/testing/profile_test.cc +++ b/tcmalloc/testing/profile_test.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// test + #include #include @@ -75,6 +77,7 @@ TEST(AllocationSampleTest, TokenAbuse) { int count2 = 0; profile2.Iterate([&](const Profile::Sample&) { count2++; }); EXPECT_EQ(count2, 0); + EXPECT_GE(count2, 0); // Delete (on the scope ending) without Claim should also be OK. {