提交 a78eecc1 编写于 作者: J jjg

7002346: javap test relies on location of scratch directory

Reviewed-by: ksrini
上级 529a4597
...@@ -39,6 +39,8 @@ public class T6729471 ...@@ -39,6 +39,8 @@ public class T6729471
} }
void run() { void run() {
File testClasses = new File(System.getProperty("test.classes"));
// simple class // simple class
verify("java.util.Map", verify("java.util.Map",
"public abstract boolean containsKey(java.lang.Object)"); "public abstract boolean containsKey(java.lang.Object)");
...@@ -48,11 +50,11 @@ public class T6729471 ...@@ -48,11 +50,11 @@ public class T6729471
"public abstract K getKey()"); "public abstract K getKey()");
// file name // file name
verify("../classes/tools/javap/T6729471.class", verify(new File(testClasses, "T6729471.class").getPath(),
"public static void main(java.lang.String...)"); "public static void main(java.lang.String...)");
// file url // file url
verify("file:../classes/tools/javap/T6729471.class", verify(new File(testClasses, "T6729471.class").toURI().toString(),
"public static void main(java.lang.String...)"); "public static void main(java.lang.String...)");
// jar url: rt.jar // jar url: rt.jar
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册