From c99e69d7c0165f4ece29db0bfe7d3335bb071707 Mon Sep 17 00:00:00 2001 From: chrchr Date: Wed, 9 Aug 2023 17:05:25 +0200 Subject: [PATCH] Fix test --- test/testmemleak.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 00bb96ca6f9..552fd52f47f 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -2483,7 +2483,8 @@ class TestMemleakNoVar : public TestFixture { "void g() {\n" " f((uint8_t)new int());\n" "}\n"); - ASSERT_EQUALS("", errout.str()); + ASSERT_EQUALS("[test.cpp:3]: (error) Allocation with new, f doesn't release it.\n", + errout.str()); } void missingAssignment() {