Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Dec 11, 2023
1 parent b7b3c82 commit 5f9feb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testleakautovar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ class TestLeakAutoVarStrcpy : public TestFixture {
" free(p);\n"
" strcpy(a, p);\n"
"}");
TODO_ASSERT_EQUALS("error (free,use)", "", errout.str());
ASSERT_EQUALS("[test.cpp:3]: (error) Dereferencing 'p' after it is deallocated / released\n", errout.str());

check("void f(char *p) {\n" // #3041 - assigning pointer when it's used
" free(p);\n"
Expand Down

0 comments on commit 5f9feb4

Please sign in to comment.