8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
Reviewed-by: ksrini
--- 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");