Added TODO test case TestMemleak::assign_pclose
This commit is contained in:
parent
e098bffd28
commit
177aeba0cf
|
@ -207,6 +207,7 @@ private:
|
|||
TEST_CASE(autoptr1);
|
||||
TEST_CASE(free_member_in_sub_func);
|
||||
TEST_CASE(if_with_and);
|
||||
TEST_CASE(assign_pclose);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2110,6 +2111,16 @@ private:
|
|||
"}\n", true);
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void assign_pclose()
|
||||
{
|
||||
check("void f()\n"
|
||||
"{\n"
|
||||
" FILE *f = popen (\"test\", \"w\");\n"
|
||||
" int a = pclose(f);\n"
|
||||
"}\n");
|
||||
TODO_ASSERT_EQUALS(std::string(""), errout.str());
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_TEST(TestMemleak)
|
||||
|
|
Loading…
Reference in New Issue