Demonstrate the current behaviour of ccsIntegrationReadOptionIntoSetting with key values leaks:
[==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from CCSGNOMEIntegrationTestReadIntegrated [ RUN ] CCSGNOMEIntegrationTestReadIntegrated.TestReadInKeyOption [ OK ] CCSGNOMEIntegrationTestReadIntegrated.TestReadInKeyOption (497 ms) [----------] 1 test from CCSGNOMEIntegrationTestReadIntegrated (509 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (552 ms total) [ PASSED ] 1 test. ==28295== ==28295== HEAP SUMMARY: ==28295== in use at exit: 11 bytes in 1 blocks ==28295== total heap usage: 1,200 allocs, 1,199 frees, 144,800 bytes allocated ==28295== ==28295== 11 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==28295== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==28295== by 0x5D31961: strdup (strdup.c:42) ==28295== by 0x4EC353: CCSGNOMEIntegrationTestReadIntegrated_TestReadInKeyOption_Test::TestBody() (compizconfig_test_ccs_gnome_integration.cpp:347) ==28295== by 0x51EC59: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2090) ==28295== by 0x513A68: testing::Test::Run() (gtest.cc:2162) ==28295== by 0x513B46: testing::TestInfo::Run() (gtest.cc:2338) ==28295== by 0x513C84: testing::TestCase::Run() (gtest.cc:2445) ==28295== by 0x513F0C: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4243) ==28295== by 0x51E7D9: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2090) ==28295== by 0x5132C0: testing::UnitTest::Run() (gtest.cc:3880) ==28295== by 0x4E8768: main (gtest_main.cc:38) ==28295== ==28295== LEAK SUMMARY: ==28295== definitely lost: 11 bytes in 1 blocks ==28295== indirectly lost: 0 bytes in 0 blocks ==28295== possibly lost: 0 bytes in 0 blocks ==28295== still reachable: 0 bytes in 0 blocks ==28295== suppressed: 0 bytes in 0 blocks
parent
18954796
Please register or sign in to comment