mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
Reviewed-by: ksrini
This commit is contained in:
parent
f0fe027b50
commit
f2fa2a199c
2 changed files with 6 additions and 4 deletions
|
@ -67,8 +67,9 @@ public class GetTask_WriterTest extends APITest {
|
||||||
String out = sw.toString();
|
String out = sw.toString();
|
||||||
System.err.println(">>" + out + "<<");
|
System.err.println(">>" + out + "<<");
|
||||||
for (String f: standardExpectFiles) {
|
for (String f: standardExpectFiles) {
|
||||||
if (f.endsWith(".html") && !out.contains(f))
|
String f1 = f.replace('/', File.separatorChar);
|
||||||
throw new Exception("expected string not found: " + f);
|
if (f1.endsWith(".html") && !out.contains(f1))
|
||||||
|
throw new Exception("expected string not found: " + f1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Exception("task failed");
|
throw new Exception("task failed");
|
||||||
|
|
|
@ -64,8 +64,9 @@ public class RunTest extends APITest {
|
||||||
checkFiles(outDir, standardExpectFiles);
|
checkFiles(outDir, standardExpectFiles);
|
||||||
String out = stdout.toString();
|
String out = stdout.toString();
|
||||||
for (String f: standardExpectFiles) {
|
for (String f: standardExpectFiles) {
|
||||||
if (f.endsWith(".html") && !out.contains(f))
|
String f1 = f.replace('/', File.separatorChar);
|
||||||
error("expected string not found: " + f);
|
if (f1.endsWith(".html") && !out.contains(f1))
|
||||||
|
error("expected string not found: " + f1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
error("call failed");
|
error("call failed");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue