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() {