mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05: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();
|
t.start();
|
||||||
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||||
|
try {
|
||||||
t.join();
|
t.join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
|
|
||||||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||||
data.createChild("test");
|
data.createChild("test");
|
||||||
|
@ -253,7 +256,10 @@ public class CDescriptorTests extends BaseTestCase {
|
||||||
}
|
}
|
||||||
for (int j = 0; j < threads.length; j++) {
|
for (int j = 0; j < threads.length; j++) {
|
||||||
if (threads[j] != null) {
|
if (threads[j] != null) {
|
||||||
|
try {
|
||||||
threads[j].join();
|
threads[j].join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
assertNull("Exception occurred: "+exception[j], exception[j]);
|
assertNull("Exception occurred: "+exception[j], exception[j]);
|
||||||
}
|
}
|
||||||
|
@ -291,7 +297,10 @@ public class CDescriptorTests extends BaseTestCase {
|
||||||
ICStorageElement data = desc.getProjectStorageElement("testElement5");
|
ICStorageElement data = desc.getProjectStorageElement("testElement5");
|
||||||
data.createChild("test");
|
data.createChild("test");
|
||||||
desc.saveProjectData();
|
desc.saveProjectData();
|
||||||
|
try {
|
||||||
t.join();
|
t.join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
|
|
||||||
fLastEvent = null;
|
fLastEvent = null;
|
||||||
}
|
}
|
||||||
|
@ -324,7 +333,10 @@ public class CDescriptorTests extends BaseTestCase {
|
||||||
ICStorageElement data = desc.getProjectStorageElement("testElement6");
|
ICStorageElement data = desc.getProjectStorageElement("testElement6");
|
||||||
data.createChild("test");
|
data.createChild("test");
|
||||||
desc.saveProjectData();
|
desc.saveProjectData();
|
||||||
|
try {
|
||||||
t.join();
|
t.join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
|
|
||||||
fLastEvent = null;
|
fLastEvent = null;
|
||||||
}
|
}
|
||||||
|
@ -356,7 +368,10 @@ public class CDescriptorTests extends BaseTestCase {
|
||||||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||||
data.createChild("test");
|
data.createChild("test");
|
||||||
desc.saveProjectData();
|
desc.saveProjectData();
|
||||||
|
try {
|
||||||
t.join();
|
t.join();
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
|
|
||||||
fLastEvent = null;
|
fLastEvent = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue