Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky2007-05-23 10:05:32 -0400
committerMikhail Sennikovsky2007-05-23 10:05:32 -0400
commit75a3ae889098e9e1d3ad9eaa7dd100d475aab848 (patch)
tree3b8e17a10e6efe08169494c1b150a1d3440e9c8f /build/org.eclipse.cdt.managedbuilder.core.tests
parent61c043fc3acc1aad3a737fcec40d550c6288610a (diff)
downloadorg.eclipse.cdt-75a3ae889098e9e1d3ad9eaa7dd100d475aab848.tar.gz
org.eclipse.cdt-75a3ae889098e9e1d3ad9eaa7dd100d475aab848.tar.xz
org.eclipse.cdt-75a3ae889098e9e1d3ad9eaa7dd100d475aab848.zip
1. fix for [Bug 187822] Problem with setRawPathEntries
2.backward compatibility fixes 3. source/output entries fixes
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.core.tests')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/BuildDescriptionModelTests.java5
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/projectmodel/tests/ProjectModelTests.java6
2 files changed, 10 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/BuildDescriptionModelTests.java b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/BuildDescriptionModelTests.java
index e692d867a8..a610e13c7f 100644
--- a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/BuildDescriptionModelTests.java
+++ b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/BuildDescriptionModelTests.java
@@ -1104,7 +1104,10 @@ public class BuildDescriptionModelTests extends TestCase {
//in this the build system is initiating the core settings update (ICProjectDescription cache refresh)
//the refresh is scheduled as a job, so in case we do not wait here the job may not be completed by the time
//the test is run
-
+ try {
+ Thread.sleep(10000);
+ } catch (InterruptedException e) {
+ }
CCorePlugin.getIndexManager().joinIndexer(-1, new NullProgressMonitor());
diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/projectmodel/tests/ProjectModelTests.java b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/projectmodel/tests/ProjectModelTests.java
index 511836a45d..7f1d872740 100644
--- a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/projectmodel/tests/ProjectModelTests.java
+++ b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/projectmodel/tests/ProjectModelTests.java
@@ -336,7 +336,11 @@ public class ProjectModelTests extends TestCase implements IElementChangedListen
project.delete(false, true, new NullProgressMonitor());
project = root.getProject(projectName);
+ assertFalse(project.exists());
+ assertFalse(project.isOpen());
des = coreModel.getProjectDescription(project);
+ assertFalse(project.exists());
+ assertFalse(project.isOpen());
assertNull("project description is not null for removed project", des);
project = createProject(projectName);
@@ -376,6 +380,8 @@ public class ProjectModelTests extends TestCase implements IElementChangedListen
project.delete(false, true, new NullProgressMonitor());
project = root.getProject(projectName);
+ assertFalse(project.exists());
+ assertFalse(project.isOpen());
des = coreModel.getProjectDescription(project);
assertNull("project description is not null for removed project", des);

Back to the top