Added TODO test case TestMemleak::assign_pclose

This commit is contained in:
Reijo Tomperi 2009-05-06 21:20:25 +03:00
parent e098bffd28
commit 177aeba0cf
1 changed files with 11 additions and 0 deletions

View File

@ -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)