1
0
Fork 0
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:
Andrew Gvozdev 2012-04-16 17:33:55 -04:00
parent 955bd297b2
commit 31331544b6

View file

@ -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;
}