memleak: activated todo test case. ticket: #1401
This commit is contained in:
parent
9ae4a758b8
commit
5ef02b6c0a
|
@ -2724,7 +2724,7 @@ private:
|
||||||
"{\n"
|
"{\n"
|
||||||
" int handle;\n"
|
" int handle;\n"
|
||||||
" \n"
|
" \n"
|
||||||
" handle = std::open(\"myfile\");\n"
|
" handle = open(\"myfile\");\n"
|
||||||
" if (handle < 0) return 1;\n"
|
" if (handle < 0) return 1;\n"
|
||||||
" \n"
|
" \n"
|
||||||
" while (some_condition()) \n"
|
" while (some_condition()) \n"
|
||||||
|
@ -2742,7 +2742,7 @@ private:
|
||||||
"{\n"
|
"{\n"
|
||||||
" int handle;\n"
|
" int handle;\n"
|
||||||
" \n"
|
" \n"
|
||||||
" handle = std::open(\"myfile\");\n"
|
" handle = open(\"myfile\");\n"
|
||||||
" if (handle < 0) return 1;\n"
|
" if (handle < 0) return 1;\n"
|
||||||
" \n"
|
" \n"
|
||||||
" while (some_condition()) \n"
|
" while (some_condition()) \n"
|
||||||
|
@ -2752,8 +2752,7 @@ private:
|
||||||
" }\n"
|
" }\n"
|
||||||
" close(handle);\n"
|
" close(handle);\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
TODO_ASSERT_EQUALS("[test.cpp:11]: (error) Resource leak: handle\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:11]: (error) Resource leak: handle\n", errout.str());
|
||||||
ASSERT_EQUALS("", errout.str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void fd_functions()
|
void fd_functions()
|
||||||
|
|
Loading…
Reference in New Issue