<table><tr><td style="">wbauer created this revision.<br />Restricted Application added projects: Frameworks, Build System.<br />Restricted Application added subscribers: Build System, Frameworks.
</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/D6701" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently the test still passes even if one of the check_translations() calls fail.<br />
The reason is that check_translations() is a function which has its own scope, so if it sets "failed" the upper level doesn't see it.</p>

<p>Use the PARENT_SCOPE option when setting the variable to properly propagate the value to the upper level.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Make a change so that the test is expected to fail, e.g. modify an expected output in tests/ECMPoQmToolsTest/check.cmake.in.</p>

<p>make test now will correctly mark the test as failed, before the test still passed.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6701" rel="noreferrer">https://phabricator.kde.org/D6701</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>tests/ECMPoQmToolsTest/check.cmake.in</div></div></div><br /><div><strong>To: </strong>wbauer, skelly<br /><strong>Cc: </strong>Frameworks, Build System<br /></div>