Memory leaks: Added a TODO assertion for a false positive

This commit is contained in:
Daniel Marjamäki 2009-09-25 22:01:54 +02:00
parent fd311e3c72
commit 6db95cd01c
1 changed files with 5 additions and 0 deletions

View File

@ -1535,6 +1535,11 @@ private:
" free(new_buf);\n"
"}\n", true);
// There isn't a memory leak in the code
TODO_ASSERT_EQUALS("", errout.str());
// This assertion checks that the message stays the same. Upon changes in the error message
// we will be notified
ASSERT_EQUALS("[test.cpp:11]: (possible error) Memory leak: buf\n", errout.str());
}