<table><tr><td style="">buschinski created this revision.<br />buschinski added a reviewer: KDevelop.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />buschinski requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16064">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fix memory leaks in unittests to make it easier to find real memory leaks in the tested code.</p>
<p>Fixed tests:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">test_projectmodel</li>
<li class="remarkup-list-item">test_areaoperation</li>
<li class="remarkup-list-item">test_controller</li>
<li class="remarkup-list-item">test_toolviewtoolbar</li>
<li class="remarkup-list-item">test_viewactivation</li>
</ul>
<div style="margin: 16px 0;
padding: 12px;
border-left: 3px solid #2980b9;
background: #daeaf3;"><span class="remarkup-note-word">NOTE:</span> this does not fix all memory leaks in all unittests, this is just s start to keep the changes small</div></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">cmake -DCMAKE_BUILD_TYPE=Debug -DECM_ENABLE_SANITIZERS='address' -DBUILD_TESTING=ON ..</li>
<li class="remarkup-list-item">make test</li>
</ul>
<p>Many tests will fail because of LSAN (leak sanitizer), which is enabled (at least here) by default with ASAN.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16064">https://phabricator.kde.org/D16064</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/project/tests/test_projectmodel.cpp<br />
kdevplatform/sublime/tests/test_areaoperation.cpp<br />
kdevplatform/sublime/tests/test_controller.cpp<br />
kdevplatform/sublime/tests/test_toolviewtoolbar.cpp<br />
kdevplatform/sublime/tests/test_viewactivation.cpp</div></div></div><br /><div><strong>To: </strong>buschinski, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>