mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
[test] Remove projects from workspace even on failures
If these tests fail, they cause a series of metadata corruption that will render most/all test executed after as unreliable. Usually, there is about ~150 test cases that fail without reason when one of these fails. Contributed by STMicroelectronics Change-Id: Ic71ace8b6a55c49dd729d40385b245f12dbd6d85 Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
This commit is contained in:
parent
6688a93e5f
commit
126cf32803
1 changed files with 29 additions and 29 deletions
|
@ -156,6 +156,7 @@ public class ManagedProject21MakefileTests extends TestCase {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
boolean succeeded = true;
|
boolean succeeded = true;
|
||||||
|
try {
|
||||||
for (int i = 0; i < projects.length; i++) {
|
for (int i = 0; i < projects.length; i++) {
|
||||||
IProject curProject = projects[i];
|
IProject curProject = projects[i];
|
||||||
|
|
||||||
|
@ -190,8 +191,7 @@ public class ManagedProject21MakefileTests extends TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
if (succeeded) { // Otherwise leave the projects around for comparison
|
|
||||||
for (int i = 0; i < projects.length; i++)
|
for (int i = 0; i < projects.length; i++)
|
||||||
ManagedBuildTestHelper.removeProject(projects[i].getName());
|
ManagedBuildTestHelper.removeProject(projects[i].getName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue