8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
authorjjg
Tue, 20 Nov 2012 07:25:11 -0800
changeset 14552 0512d803a331
parent 14551 a47974703e03
child 14553 b2fd2388dd46
8003650: java.lang.Exception: expected string not found: pkg/package-frame.html Reviewed-by: ksrini
langtools/test/tools/javadoc/api/basic/GetTask_WriterTest.java
langtools/test/tools/javadoc/api/basic/RunTest.java
--- 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");
--- a/langtools/test/tools/javadoc/api/basic/RunTest.java	Tue Nov 20 07:21:07 2012 -0800
+++ b/langtools/test/tools/javadoc/api/basic/RunTest.java	Tue Nov 20 07:25:11 2012 -0800
@@ -64,8 +64,9 @@
             checkFiles(outDir, standardExpectFiles);
             String out = stdout.toString();
             for (String f: standardExpectFiles) {
-                if (f.endsWith(".html") && !out.contains(f))
-                    error("expected string not found: " + f);
+                String f1 = f.replace('/', File.separatorChar);
+                if (f1.endsWith(".html") && !out.contains(f1))
+                    error("expected string not found: " + f1);
             }
         } else {
             error("call failed");