summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2002-11-25 13:40:11 +0000
committerGrant Gayed <ggayed>2002-11-25 13:40:11 +0000
commit9eae710054787afb7ee84a1bdc13c446064ee366 (patch)
treeef6038415c9fdbc17f1721feae5aa3adef6c967c /tests
parent1ac8e1e19ac313ec5c4edc4dd66e74c3c2feecc2 (diff)
downloadeclipse.platform.swt-9eae710054787afb7ee84a1bdc13c446064ee366.tar.gz
eclipse.platform.swt-9eae710054787afb7ee84a1bdc13c446064ee366.tar.xz
eclipse.platform.swt-9eae710054787afb7ee84a1bdc13c446064ee366.zip
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java
index e9bd49d636..7524f519de 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java
@@ -12,11 +12,15 @@ package org.eclipse.swt.tests.junit;
*/ public class SwtJunit {
public static final String testFontName;
+ public final static boolean isWindows = System.getProperty("os.name").startsWith("Win");
public final static boolean isLinux = System.getProperty("os.name").equals("Linux");
public final static boolean isAIX = System.getProperty("os.name").equals("AIX");
- public final static boolean isMotif = isLinux || isAIX;
- public final static boolean isWindows = !isMotif;
+ public final static boolean isSolaris = System.getProperty("os.name").equals("Solaris") || System.getProperty("os.name").equals("SunOS");
+ public final static boolean isHPUX = System.getProperty("os.name").equals("HP-UX");
+ public final static boolean isMac = System.getProperty("os.name").startsWith("Mac");
+ public final static boolean isMotif = /*!isGTK &&*/ isLinux || isAIX || isSolaris || isHPUX;
+
static {
if (isMotif) {
testFontName = "misc-fixed";