Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 9, 2023
1 parent 4a5e3e0 commit c99e69d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testmemleak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c99e69d

Please sign in to comment.