diff --git a/test/testleakautovar.cpp b/test/testleakautovar.cpp index adf60b1c4ab..1e4502b2c21 100644 --- a/test/testleakautovar.cpp +++ b/test/testleakautovar.cpp @@ -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"