Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-03-28 17:59:10 +0000
committerMarkus Schorn2008-03-28 17:59:10 +0000
commitbb469b32ee9326eb3ecbf565e51c2b2f5b681197 (patch)
treef1f0f1ce85ec7b91abffda626da23ffe9308e83a /core/org.eclipse.cdt.ui.tests
parentdb312ccd1b4aa8f9319c3757cbe6a6e13d08ceac (diff)
downloadorg.eclipse.cdt-bb469b32ee9326eb3ecbf565e51c2b2f5b681197.tar.gz
org.eclipse.cdt-bb469b32ee9326eb3ecbf565e51c2b2f5b681197.tar.xz
org.eclipse.cdt-bb469b32ee9326eb3ecbf565e51c2b2f5b681197.zip
Search for macro references, bug 156561.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CSelectionTestsAnyIndexer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CSelectionTestsAnyIndexer.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CSelectionTestsAnyIndexer.java
index 84a6917dab4..d6acb3f96d2 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CSelectionTestsAnyIndexer.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CSelectionTestsAnyIndexer.java
@@ -8,7 +8,6 @@
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
-
package org.eclipse.cdt.ui.tests.text.selection;
import java.io.IOException;
@@ -47,6 +46,7 @@ public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexe
sourceIndexerID= indexerID;
}
+ @Override
protected void setUp() throws Exception {
super.setUp();
@@ -58,6 +58,7 @@ public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexe
index= CCorePlugin.getIndexManager().getIndex(fCProject);
}
+ @Override
protected void tearDown() throws Exception {
closeAllEditors();
CProjectHelper.delete(fCProject);
@@ -511,7 +512,7 @@ public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexe
String hcode= buffers[0].toString();
String scode= buffers[1].toString();
IFile hfile = importFile("aheader.h", hcode);
- IFile file = importFile("source.cpp", scode);
+ IFile file = importFile("source.c", scode);
TestSourceReader.waitUntilFileIsIndexed(index, file, MAX_WAIT_TIME);
IASTNode decl;
int offset0, offset1;
@@ -520,7 +521,7 @@ public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexe
testF3(hfile, offset1);
IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
IEditorInput input = part.getEditorInput();
- assertEquals("source.cpp", ((FileEditorInput)input).getFile().getName());
+ assertEquals("source.c", ((FileEditorInput)input).getFile().getName());
}
// int myFunc();

Back to the top