mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
179322: remove test case (bug is RESOLVED INVALID)
This commit is contained in:
parent
063fd7765c
commit
850c6c492d
3 changed files with 0 additions and 50 deletions
|
@ -53,12 +53,10 @@ import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
||||||
import org.eclipse.cdt.core.testplugin.util.TestSourceReader;
|
import org.eclipse.cdt.core.testplugin.util.TestSourceReader;
|
||||||
import org.eclipse.core.resources.IContainer;
|
import org.eclipse.core.resources.IContainer;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IFolder;
|
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.core.resources.IProjectDescription;
|
import org.eclipse.core.resources.IProjectDescription;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.FileLocator;
|
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
|
|
||||||
|
@ -531,50 +529,6 @@ public class IndexBugsTests extends BaseTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Linked headers, referenced via include <> syntax are missed
|
|
||||||
*/
|
|
||||||
public void _test179322() throws Exception {
|
|
||||||
|
|
||||||
String baseDir= FileLocator.toFileURL(FileLocator.find(CTestPlugin.getDefault().getBundle(), new Path("/resources/indexTests/bugs/179322"), null)).getFile();
|
|
||||||
IFolder content= fCProject.getProject().getFolder("content");
|
|
||||||
content.createLink(new Path(baseDir), IResource.NONE, null);
|
|
||||||
// List entries= new ArrayList(Arrays.asList(CoreModel.getRawPathEntries(fCProject)));
|
|
||||||
// entries.add(
|
|
||||||
// CoreModel.newIncludeEntry(fCProject.getPath(),
|
|
||||||
// null, content.getLocation(), true));
|
|
||||||
// entries.add(
|
|
||||||
// CoreModel.newIncludeEntry(fCProject.getPath(),
|
|
||||||
// null, content.getLocation(), false));
|
|
||||||
// entries.add(CoreModel.newSourceEntry(content.getProjectRelativePath()));
|
|
||||||
// fCProject.setRawPathEntries(
|
|
||||||
// (IPathEntry[]) entries.toArray(new IPathEntry[entries.size()]),
|
|
||||||
// new NullProgressMonitor()
|
|
||||||
// );
|
|
||||||
|
|
||||||
TestScannerProvider.sIncludes= new String[] {
|
|
||||||
content.getLocation().toString()
|
|
||||||
};
|
|
||||||
CCorePlugin.getIndexManager().reindex(fCProject);
|
|
||||||
CCorePlugin.getIndexManager().joinIndexer(10000, NPM);
|
|
||||||
|
|
||||||
fIndex.acquireReadLock();
|
|
||||||
try {
|
|
||||||
IBinding[] bindings= fIndex.findBindings(Pattern.compile(".*"), true, IndexFilter.ALL, NPM);
|
|
||||||
assertEquals(2, bindings.length);
|
|
||||||
|
|
||||||
int b= bindings[0].getName().equals("A") ? 1 : 0;
|
|
||||||
assertTrue(bindings[0] instanceof ICPPClassType);
|
|
||||||
assertTrue(bindings[1] instanceof ICPPClassType);
|
|
||||||
assertTrue(((ICPPClassType)bindings[1-b]).getBases().length==0);
|
|
||||||
assertTrue(((ICPPClassType)bindings[b]).getBases().length==1);
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
fIndex.releaseReadLock();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// class a {};
|
// class a {};
|
||||||
// class A {};
|
// class A {};
|
||||||
// namespace aa {
|
// namespace aa {
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#include <base.h>
|
|
||||||
|
|
||||||
class B : public A {};
|
|
|
@ -1 +0,0 @@
|
||||||
class A {};
|
|
Loading…
Add table
Reference in a new issue