From 177aeba0cf37f0f3ed5cdbcd8034cc8ac638089a Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Wed, 6 May 2009 21:20:25 +0300 Subject: [PATCH] Added TODO test case TestMemleak::assign_pclose --- test/testmemleak.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 837d41b08..3bb06feff 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -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)