<table><tr><td style="">thomassc created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />thomassc 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/D18567">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch makes testActiveDocumentsGetBestPriority() wait for the TestFiles it uses to be parsed, which prevents clang errors like "error: error reading '/tmp/testfile_SD1554.cpp'" that happen if these files get removed early. It also makes this test close the documents it opens, which prevents potential crashes in TestDUChain::cleanupTestCase() (and perhaps other issues).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run plugins/clang/tests/test_duchain-clang</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>clang_duchain_testActiveDocumentsGetBestPriority_fix_cleanup (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18567">https://phabricator.kde.org/D18567</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/clang/tests/test_duchain.cpp</div></div></div><br /><div><strong>To: </strong>thomassc<br /><strong>Cc: </strong>kdevelop-devel, glebaccon, hase, antismap, iodelay, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>