mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15:38 +02:00
Ignore InterruptedException in unit tests
This commit is contained in:
parent
955bd297b2
commit
31331544b6
1 changed files with 33 additions and 18 deletions
|
@ -193,7 +193,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
};
|
||||
t.start();
|
||||
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||
data.createChild("test");
|
||||
|
@ -253,7 +256,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
}
|
||||
for (int j = 0; j < threads.length; j++) {
|
||||
if (threads[j] != null) {
|
||||
try {
|
||||
threads[j].join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
assertNull("Exception occurred: "+exception[j], exception[j]);
|
||||
}
|
||||
|
@ -291,7 +297,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement5");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
@ -324,7 +333,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement6");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
@ -356,7 +368,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue