diff options
author | Andrey Loskutov | 2018-07-24 16:13:48 +0000 |
---|---|---|
committer | Andrey Loskutov | 2018-07-26 12:26:05 +0000 |
commit | 8b62bd6c5c1038d43fa2d6f2d8fa5422749bbf2e (patch) | |
tree | 990ddc41115aa72f9858b098086b67e7817c66a9 /tests/org.eclipse.swt.tests | |
parent | 6a0d54ebad802fd5044e617494cf7b1e7859edca (diff) | |
download | eclipse.platform.swt-8b62bd6c5c1038d43fa2d6f2d8fa5422749bbf2e.tar.gz eclipse.platform.swt-8b62bd6c5c1038d43fa2d6f2d8fa5422749bbf2e.tar.xz eclipse.platform.swt-8b62bd6c5c1038d43fa2d6f2d8fa5422749bbf2e.zip |
Bug 532632 - add runtime checks for Display.widgetTable consistency
SWT unit tests will run now with
-Dorg.eclipse.swt.internal.gtk.enableStrictChecks which will check
Display.widgetTable consistency during add/removeWidget operations.
Change-Id: I09b7ef178561fac4861be579f4f15ee329f99248
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'tests/org.eclipse.swt.tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/pom.xml | 1 | ||||
-rw-r--r-- | tests/org.eclipse.swt.tests/test.xml | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/pom.xml b/tests/org.eclipse.swt.tests/pom.xml index 1bbd6a9867..14e6671920 100644 --- a/tests/org.eclipse.swt.tests/pom.xml +++ b/tests/org.eclipse.swt.tests/pom.xml @@ -68,6 +68,7 @@ <argLine>@{tycho.testArgLine} -Dorg.eclipse.swt.internal.gtk.disablePrinting ${os-jvm-flags}</argLine> <systemPropertyVariables> <user.home>${project.build.directory}</user.home> <!-- used as cache directory for SWT native libraries --> + <org.eclipse.swt.internal.gtk.enableStrictChecks>true</org.eclipse.swt.internal.gtk.enableStrictChecks> <!-- see bug 532632 --> </systemPropertyVariables> </configuration> </execution> diff --git a/tests/org.eclipse.swt.tests/test.xml b/tests/org.eclipse.swt.tests/test.xml index 5d909544d2..d5fe2ff3b0 100644 --- a/tests/org.eclipse.swt.tests/test.xml +++ b/tests/org.eclipse.swt.tests/test.xml @@ -30,8 +30,8 @@ <property name="data-dir" value="${data}"/> <property name="plugin-name" value="${plugin-name}"/> <property name="classname" value="org.eclipse.swt.tests.junit.AllNonBrowserTests"/> - <!-- workaround for https://bugs.eclipse.org/502410 : --> - <property name="vmargs" value="-Dorg.eclipse.swt.internal.gtk.disablePrinting"/> + <!-- workaround for https://bugs.eclipse.org/502410 and checks for bug 532632 --> + <property name="vmargs" value="-Dorg.eclipse.swt.internal.gtk.disablePrinting -Dorg.eclipse.swt.internal.gtk.enableStrictChecks"/> </ant> </target> |