langtools/test/tools/javadoc/api/basic/GetTask_WriterTest.java
changeset 14552 0512d803a331
parent 14545 2e7bab0639b8
child 27319 030080f03e4f
--- a/langtools/test/tools/javadoc/api/basic/GetTask_WriterTest.java	Tue Nov 20 07:21:07 2012 -0800
+++ b/langtools/test/tools/javadoc/api/basic/GetTask_WriterTest.java	Tue Nov 20 07:25:11 2012 -0800
@@ -67,8 +67,9 @@
             String out = sw.toString();
             System.err.println(">>" + out + "<<");
             for (String f: standardExpectFiles) {
-                if (f.endsWith(".html") && !out.contains(f))
-                    throw new Exception("expected string not found: " + f);
+                String f1 = f.replace('/', File.separatorChar);
+                if (f1.endsWith(".html") && !out.contains(f1))
+                    throw new Exception("expected string not found: " + f1);
             }
         } else {
             throw new Exception("task failed");