diff options
author | John Arthorne | 2012-06-25 14:12:36 +0000 |
---|---|---|
committer | John Arthorne | 2012-06-25 14:12:36 +0000 |
commit | c925ffa549a20d19d93a8e6a9db4679d58c09eed (patch) | |
tree | e53f81bc0267db912130fb7b8480e2950c2e4e0c | |
parent | 0a9fbd60650f62fba88679cac2ebac56fe94f2a6 (diff) | |
download | eclipse.platform.runtime-c925ffa549a20d19d93a8e6a9db4679d58c09eed.tar.gz eclipse.platform.runtime-c925ffa549a20d19d93a8e6a9db4679d58c09eed.tar.xz eclipse.platform.runtime-c925ffa549a20d19d93a8e6a9db4679d58c09eed.zip |
Bug 379746 - core.tests.harness cleanupv20120625-141236I20120627-0000I20120626-1200I20120625-2200
4 files changed, 4 insertions, 85 deletions
diff --git a/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF b/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF index c7330eb74..7e8595a36 100644 --- a/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF +++ b/tests/org.eclipse.core.tests.harness/META-INF/MANIFEST.MF @@ -2,8 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Eclipse Core Tests Harness Bundle-SymbolicName: org.eclipse.core.tests.harness; singleton:=true -Bundle-Version: 3.8.0.qualifier -Eclipse-BundleShape: dir +Bundle-Version: 3.8.100.qualifier Bundle-ClassPath: testharness.jar Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActivator Bundle-Vendor: Eclipse.org diff --git a/tests/org.eclipse.core.tests.harness/build-tests.xml b/tests/org.eclipse.core.tests.harness/build-tests.xml deleted file mode 100644 index fc634e206..000000000 --- a/tests/org.eclipse.core.tests.harness/build-tests.xml +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0"?> -<project name="Build Core Sniff" basedir="." default="init"> - - <property name="root" value="${basedir}/.."/> - <property name="temp" value="${root}/__temp"/> - <property name="plugins" value="${temp}/eclipse/plugins"/> - - <target name="init"> - <tstamp/> - - <delete dir="${temp}"/> - <mkdir dir="${plugins}"/> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.osgi.tests" /> - <param name="jarName" value="osgitests.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.resources" /> - <param name="jarName" value="resourcestests.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant" /> - <param name="jarName" value="saveparticipant.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant1" /> - <param name="jarName" value="saveparticipant1.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant2" /> - <param name="jarName" value="saveparticipant2.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.resources.saveparticipant3" /> - <param name="jarName" value="saveparticipant3.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.runtime" /> - <param name="jarName" value="runtimetests.jar" /> - </antcall> - - <antcall target="buildPlugin"> - <param name="pluginName" value="org.eclipse.core.tests.harness" /> - <param name="jarName" value="testharness.jar" /> - </antcall> - - <zip zipfile="${basedir}/coreSniff${DSTAMP}.zip" - basedir="${temp}" - /> - - <delete dir="${temp}"/> - <eclipse.refreshLocal resource="org.eclipse.core.tests.harness"/> - </target> - - <target name="buildPlugin"> - <copy todir="${plugins}/${pluginName}"> - <fileset dir="${root}/${pluginName}"/> - </copy> - <jar jarfile="${plugins}/${pluginName}/${jarName}" - basedir="${plugins}/${pluginName}/bin" - /> - <delete dir="${plugins}/${pluginName}/bin"/> - </target> - -</project>
\ No newline at end of file diff --git a/tests/org.eclipse.core.tests.harness/readme.txt b/tests/org.eclipse.core.tests.harness/readme.txt deleted file mode 100644 index 1bb41ac14..000000000 --- a/tests/org.eclipse.core.tests.harness/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -README for org.eclipse.core.tests.harness - -This plug-in works as a library for core tests. It also holds the script -to launch the core automated tests after the a build. -In order to execute launch the tests, the test framework plug-ins have -to available. - -Command line (from the eclipse home directory) for executing tests: - -java -cp startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -file plugins\org.eclipse.core.tests.harness\test.xml run -dev bin
\ No newline at end of file diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/OrderedLockTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/OrderedLockTest.java index 0ff017260..3de35f8aa 100644 --- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/OrderedLockTest.java +++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/OrderedLockTest.java @@ -99,6 +99,7 @@ public class OrderedLockTest extends TestCase { public void run() { barrier.setStatus(TestBarrier.STATUS_RUNNING); barrier.waitForStatus(TestBarrier.STATUS_WAIT_FOR_START); + barrier.setStatus(TestBarrier.STATUS_WAIT_FOR_DONE); lock.acquire(); wasInterupted[0] = Thread.currentThread().isInterrupted(); lock.release(); @@ -111,7 +112,8 @@ public class OrderedLockTest extends TestCase { lock.acquire(); barrier.setStatus(TestBarrier.STATUS_WAIT_FOR_START); //make sure thread is blocked - Thread.sleep(100); + barrier.waitForStatus(TestBarrier.STATUS_WAIT_FOR_DONE); + Thread.sleep(500); t.interrupt(); lock.release(); t.join(); |