*** empty log message ***
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
index 46b7988..85a2915 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
@@ -733,7 +733,7 @@
}
if (File.separatorChar != '/') urlPath = urlPath.replace('/', File.separatorChar);
-// if (urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1);
+ if (SwtJunit.isWindows && urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1);
urlPath = urlPath.replaceAll("%20", " ");
System.out.println("Resolved file name for " + fileName + " = " + urlPath);
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
index ca20874..44af22d 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
@@ -27,6 +27,7 @@
public static boolean verbose = false;
public final static boolean isGTK = SWT.getPlatform().equals("gtk");
+ public final static boolean isWindows = SWT.getPlatform().startsWith("win32");
// allow specific image formats to be tested
public static String[] imageFormats = new String[] {"bmp", "jpg", "gif", "png"};
@@ -73,7 +74,7 @@
}
if (File.separatorChar != '/') urlPath = urlPath.replace('/', File.separatorChar);
-// if (urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1);
+ if (isWindows && urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1);
urlPath = urlPath.replaceAll("%20", " ");
if (verbose) {