Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
d8654035
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d8654035
编写于
11月 25, 2009
作者:
O
ohair
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6904183: Fix jdk/test/com/sun/jdi tests to run with -samevm
Reviewed-by: dcubed
上级
49a97f30
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
26 addition
and
19 deletion
+26
-19
test/Makefile
test/Makefile
+1
-1
test/ProblemList.txt
test/ProblemList.txt
+0
-6
test/com/sun/jdi/BadHandshakeTest.java
test/com/sun/jdi/BadHandshakeTest.java
+2
-0
test/com/sun/jdi/DoubleAgentTest.java
test/com/sun/jdi/DoubleAgentTest.java
+2
-0
test/com/sun/jdi/ExclusiveBind.java
test/com/sun/jdi/ExclusiveBind.java
+2
-0
test/com/sun/jdi/JITDebug.sh
test/com/sun/jdi/JITDebug.sh
+2
-2
test/com/sun/jdi/RepStep.java
test/com/sun/jdi/RepStep.java
+1
-1
test/com/sun/jdi/RunToExit.java
test/com/sun/jdi/RunToExit.java
+3
-1
test/com/sun/jdi/SimulResumerTest.java
test/com/sun/jdi/SimulResumerTest.java
+1
-1
test/com/sun/jdi/Solaris32AndSolaris64Test.sh
test/com/sun/jdi/Solaris32AndSolaris64Test.sh
+2
-2
test/com/sun/jdi/VMConnection.java
test/com/sun/jdi/VMConnection.java
+2
-1
test/com/sun/jdi/connect/spi/DebugUsingCustomConnector.java
test/com/sun/jdi/connect/spi/DebugUsingCustomConnector.java
+1
-1
test/com/sun/jdi/connect/spi/GeneratedConnectors.java
test/com/sun/jdi/connect/spi/GeneratedConnectors.java
+1
-1
test/com/sun/jdi/connect/spi/SimpleLaunchingConnector.java
test/com/sun/jdi/connect/spi/SimpleLaunchingConnector.java
+5
-1
test/com/sun/jdi/redefine/RedefineTest.java
test/com/sun/jdi/redefine/RedefineTest.java
+1
-1
未找到文件。
test/Makefile
浏览文件 @
d8654035
...
...
@@ -536,7 +536,7 @@ jdk_text: java/text sun/text
# Using samevm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_tools1
jdk_tools1
:
com/sun/jdi
$(
call
Run
Other
vmBatch
)
$(
call
Run
Same
vmBatch
)
JDK_ALL_TARGETS
+=
jdk_tools2
jdk_tools2
:
com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing
$(
call
RunOthervmBatch
)
...
...
test/ProblemList.txt
浏览文件 @
d8654035
...
...
@@ -1088,9 +1088,6 @@ java/text/Bidi/Bug6665028.java linux-x64
# So most if not all tools tests are now being run with "othervm" mode.
# Some of these tools tests have a tendency to use fixed ports, bad idea.
# Solaris 10 client x86, java.lang.IndexOutOfBoundsException resumer Interrupted
com/sun/jdi/SimulResumerTest.java generic-all
# Output of jps differs from expected output.
# Invalid argument count on solaris-sparc and x64
sun/tools/jstatd/jstatdPort.sh generic-all
...
...
@@ -1105,9 +1102,6 @@ sun/tools/jps/jps-m_2.sh generic-all
# Server name error, port 2098 problem?
sun/tools/jstatd/jstatdServerName.sh generic-all
# Solaris, handshake failed, othervm mode
com/sun/jdi/RedefineException.sh generic-all
# These tests fail on solaris sparc, all the time
com/sun/servicetag/DeleteServiceTag.java generic-all
com/sun/servicetag/DuplicateNotFound.java generic-all
...
...
test/com/sun/jdi/BadHandshakeTest.java
浏览文件 @
d8654035
...
...
@@ -112,6 +112,8 @@ public class BadHandshakeTest {
String
arch
=
System
.
getProperty
(
"os.arch"
);
if
(
arch
.
equals
(
"sparcv9"
))
{
exe
+=
"sparcv9/java"
;
}
else
if
(
arch
.
equals
(
"amd64"
))
{
exe
+=
"amd64/java"
;
}
else
{
exe
+=
"java"
;
}
...
...
test/com/sun/jdi/DoubleAgentTest.java
浏览文件 @
d8654035
...
...
@@ -94,6 +94,8 @@ public class DoubleAgentTest {
String
arch
=
System
.
getProperty
(
"os.arch"
);
if
(
arch
.
equals
(
"sparcv9"
))
{
exe
+=
"sparcv9/java"
;
}
else
if
(
arch
.
equals
(
"amd64"
))
{
exe
+=
"amd64/java"
;
}
else
{
exe
+=
"java"
;
}
...
...
test/com/sun/jdi/ExclusiveBind.java
浏览文件 @
d8654035
...
...
@@ -101,6 +101,8 @@ public class ExclusiveBind {
String
arch
=
System
.
getProperty
(
"os.arch"
);
if
(
arch
.
equals
(
"sparcv9"
))
{
exe
+=
"sparcv9/java"
;
}
else
if
(
arch
.
equals
(
"amd64"
))
{
exe
+=
"amd64/java"
;
}
else
{
exe
+=
"java"
;
}
...
...
test/com/sun/jdi/JITDebug.sh
浏览文件 @
d8654035
...
...
@@ -103,10 +103,10 @@ if [ -z "${TESTJAVA}" ] ; then
#if running standalone (no test harness of any kind), compile the
#support files and the test case
${
TESTJAVA
}
/bin/javac
-d
${
TESTCLASSES
}
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
.
"
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
${
TESTSRC
}
"
\
TestScaffold.java VMConnection.java TargetListener.java TargetAdapter.java
${
TESTJAVA
}
/bin/javac
-d
${
TESTCLASSES
}
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
.
"
-g
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
${
TESTSRC
}
"
-g
\
JITDebug.java
fi
echo
"JDK under test is:
$TESTJAVA
"
...
...
test/com/sun/jdi/RepStep.java
浏览文件 @
d8654035
...
...
@@ -29,7 +29,7 @@
* @run compile -g RepStepTarg.java
* @run build VMConnection RepStep
*
* @run main RepStep
* @run main
/othervm
RepStep
*
* @summary RepStep detects missed step events due to lack of
* frame pop events (in back-end).
...
...
test/com/sun/jdi/RunToExit.java
浏览文件 @
d8654035
...
...
@@ -26,7 +26,7 @@
* @summary Test that with server=y, when VM runs to System.exit() no error happens
*
* @build VMConnection RunToExit Exit0
* @run main RunToExit
* @run main
/othervm
RunToExit
*/
import
java.io.InputStream
;
import
java.io.IOException
;
...
...
@@ -117,6 +117,8 @@ public class RunToExit {
String
arch
=
System
.
getProperty
(
"os.arch"
);
if
(
arch
.
equals
(
"sparcv9"
))
{
exe
+=
"sparcv9/java"
;
}
else
if
(
arch
.
equals
(
"amd64"
))
{
exe
+=
"amd64/java"
;
}
else
{
exe
+=
"java"
;
}
...
...
test/com/sun/jdi/SimulResumerTest.java
浏览文件 @
d8654035
...
...
@@ -30,7 +30,7 @@
*
* @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g SimulResumerTest.java
* @run main SimulResumerTest
* @run main
/othervm
SimulResumerTest
*/
import
com.sun.jdi.*
;
import
com.sun.jdi.event.*
;
...
...
test/com/sun/jdi/Solaris32AndSolaris64Test.sh
浏览文件 @
d8654035
...
...
@@ -164,10 +164,10 @@ fi
if
[
-n
"
${
STANDALONE
}
"
]
;
then
#if running standalone, compile the support files
${
TESTJAVA
}
/bin/javac
-d
${
TESTCLASSES
}
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
.
"
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
${
TESTSRC
}
"
\
TestScaffold.java VMConnection.java TargetListener.java TargetAdapter.java
${
TESTJAVA
}
/bin/javac
-d
${
TESTCLASSES
}
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
.
"
-g
\
-classpath
"
$TESTJAVA
/lib/tools.jar
${
PATHSEP
}
${
TESTSRC
}
"
-g
\
FetchLocals.java DataModelTest.java
fi
...
...
test/com/sun/jdi/VMConnection.java
浏览文件 @
d8654035
...
...
@@ -57,6 +57,7 @@ class VMConnection {
if
(
testClasses
==
null
)
{
return
retVal
;
}
retVal
+=
"-classpath "
+
testClasses
+
" "
;
File
myFile
=
new
File
(
testClasses
,
"@debuggeeVMOptions"
);
if
(!
myFile
.
canRead
())
{
...
...
@@ -97,7 +98,7 @@ class VMConnection {
if
(
line
.
length
()
!=
0
&&
!
line
.
startsWith
(
"#"
))
{
System
.
out
.
println
(
"-- Added debuggeeVM options from file "
+
wholePath
+
": "
+
line
);
retVal
=
line
;
retVal
+
=
line
;
break
;
}
// Else, read he next line.
...
...
test/com/sun/jdi/connect/spi/DebugUsingCustomConnector.java
浏览文件 @
d8654035
...
...
@@ -28,7 +28,7 @@
* This tests launches a debuggee using a custom LaunchingConnector.
*
* @build DebugUsingCustomConnector SimpleLaunchingConnector Foo NullTransportService
* @run main DebugUsingCustomConnector
* @run main
/othervm
DebugUsingCustomConnector
*/
import
com.sun.jdi.*
;
import
com.sun.jdi.connect.*
;
...
...
test/com/sun/jdi/connect/spi/GeneratedConnectors.java
浏览文件 @
d8654035
...
...
@@ -31,7 +31,7 @@
* created and that they have an "address" argument.
*
* @build GeneratedConnectors NullTransportService
* @run main GeneratedConnectors
* @run main
/othervm
GeneratedConnectors
*/
import
com.sun.jdi.*
;
...
...
test/com/sun/jdi/connect/spi/SimpleLaunchingConnector.java
浏览文件 @
d8654035
...
...
@@ -147,11 +147,15 @@ public class SimpleLaunchingConnector implements LaunchingConnector {
String
arch
=
System
.
getProperty
(
"os.arch"
);
if
(
arch
.
equals
(
"sparcv9"
))
{
exe
+=
"sparcv9/java"
;
}
else
if
(
arch
.
equals
(
"amd64"
))
{
exe
+=
"amd64/java"
;
}
else
{
exe
+=
"java"
;
}
String
cmd
=
exe
+
" -Xdebug -Xrunjdwp:transport=dt_socket,timeout=15000,address="
+
key
.
address
()
+
""
+
className
;
key
.
address
()
+
" -classpath "
+
System
.
getProperty
(
"test.classes"
)
+
" "
+
className
;
Process
process
=
Runtime
.
getRuntime
().
exec
(
cmd
);
Connection
conn
=
ts
.
accept
(
key
,
30
*
1000
,
9
*
1000
);
ts
.
stopListening
(
key
);
...
...
test/com/sun/jdi/redefine/RedefineTest.java
浏览文件 @
d8654035
...
...
@@ -34,7 +34,7 @@
* @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g RedefineTest.java
* @run shell RedefineSetUp.sh
* @run main RedefineTest
* @run main
/othervm
RedefineTest
*/
import
com.sun.jdi.*
;
import
com.sun.jdi.event.*
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录