mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 356955: Follow up porting fix to 8.0.2.
This commit is contained in:
parent
24a8df9d9f
commit
2f327be2be
1 changed files with 3 additions and 1 deletions
|
@ -53,6 +53,7 @@ public class IndexCompositeTests extends BaseTestCase {
|
||||||
private static final int NONE = 0, REFS = IIndexManager.ADD_DEPENDENCIES;
|
private static final int NONE = 0, REFS = IIndexManager.ADD_DEPENDENCIES;
|
||||||
private static final int REFD = IIndexManager.ADD_DEPENDENT, BOTH = REFS | REFD;
|
private static final int REFD = IIndexManager.ADD_DEPENDENT, BOTH = REFS | REFD;
|
||||||
private static final IndexFilter FILTER= new IndexFilter() {
|
private static final IndexFilter FILTER= new IndexFilter() {
|
||||||
|
@Override
|
||||||
public boolean acceptBinding(IBinding binding) throws CoreException {
|
public boolean acceptBinding(IBinding binding) throws CoreException {
|
||||||
if (binding instanceof ICPPMethod) {
|
if (binding instanceof ICPPMethod) {
|
||||||
return !((ICPPMethod) binding).isImplicit();
|
return !((ICPPMethod) binding).isImplicit();
|
||||||
|
@ -63,7 +64,7 @@ public class IndexCompositeTests extends BaseTestCase {
|
||||||
|
|
||||||
IIndex index;
|
IIndex index;
|
||||||
|
|
||||||
protected StringBuilder[] getContentsForTest(int blocks) throws IOException {
|
protected StringBuffer[] getContentsForTest(int blocks) throws IOException {
|
||||||
return TestSourceReader.getContentsForTest(
|
return TestSourceReader.getContentsForTest(
|
||||||
CTestPlugin.getDefault().getBundle(), "parser", getClass(), getName(), blocks);
|
CTestPlugin.getDefault().getBundle(), "parser", getClass(), getName(), blocks);
|
||||||
}
|
}
|
||||||
|
@ -419,6 +420,7 @@ public class IndexCompositeTests extends BaseTestCase {
|
||||||
index.acquireReadLock();
|
index.acquireReadLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
if (index != null) {
|
if (index != null) {
|
||||||
index.releaseReadLock();
|
index.releaseReadLock();
|
||||||
|
|
Loading…
Add table
Reference in a new issue