memleak: activated todo test case. ticket: #1401

This commit is contained in:
Daniel Marjamäki 2010-10-21 22:33:40 +02:00
parent 9ae4a758b8
commit 5ef02b6c0a
1 changed files with 3 additions and 4 deletions

View File

@ -2724,7 +2724,7 @@ private:
"{\n"
" int handle;\n"
" \n"
" handle = std::open(\"myfile\");\n"
" handle = open(\"myfile\");\n"
" if (handle < 0) return 1;\n"
" \n"
" while (some_condition()) \n"
@ -2742,7 +2742,7 @@ private:
"{\n"
" int handle;\n"
" \n"
" handle = std::open(\"myfile\");\n"
" handle = open(\"myfile\");\n"
" if (handle < 0) return 1;\n"
" \n"
" while (some_condition()) \n"
@ -2752,8 +2752,7 @@ private:
" }\n"
" close(handle);\n"
"}\n");
TODO_ASSERT_EQUALS("[test.cpp:11]: (error) Resource leak: handle\n", errout.str());
ASSERT_EQUALS("", errout.str());
ASSERT_EQUALS("[test.cpp:11]: (error) Resource leak: handle\n", errout.str());
}
void fd_functions()