Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7bfa4c45
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看板
提交
7bfa4c45
编写于
1月 04, 2010
作者:
O
ohair
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6911117: These tests do not work with CYGWIN: com/sun/jdi
Reviewed-by: tbell, alanb
上级
2a0e5cc6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
11 deletion
+22
-11
test/com/sun/jdi/ProcessAttachTest.sh
test/com/sun/jdi/ProcessAttachTest.sh
+20
-9
test/com/sun/jdi/connect/spi/JdiLoadedByCustomLoader.sh
test/com/sun/jdi/connect/spi/JdiLoadedByCustomLoader.sh
+2
-2
未找到文件。
test/com/sun/jdi/ProcessAttachTest.sh
浏览文件 @
7bfa4c45
...
...
@@ -54,10 +54,14 @@ JAVA="${TESTJAVA}/bin/java"
OS
=
`
uname
-s
`
case
"
$OS
"
in
Windows
*
|
CYGWIN_NT
*
)
Windows
*
)
PS
=
";"
OS
=
"Windows"
;;
CYGWIN
*
)
PS
=
";"
OS
=
"CYGWIN"
;;
*
)
PS
=
":"
;;
...
...
@@ -67,16 +71,23 @@ startDebuggee()
{
OUTPUTFILE
=
${
TESTCLASSES
}
/Debuggee.out
${
JAVA
}
"
$@
"
>
${
OUTPUTFILE
}
&
pid
=
"
$!
"
startpid
=
"
$!
"
pid
=
"
${
startpid
}
"
# CYGWIN startpid is not the native windows PID we want, get the WINPID
if
[
"
${
OS
}
"
=
"CYGWIN"
]
;
then
sleep
2
ps
-l
-p
${
startpid
}
pid
=
`
ps
-l
-p
${
startpid
}
|
tail
-1
|
awk
'{print $4;}'
`
fi
# MKS creates an intermediate shell to launch ${JAVA} so
# ${pid} is not the actual pid. We have put in a small sleep
# ${
start
pid} is not the actual pid. We have put in a small sleep
# to give the intermediate shell process time to launch the
# "java" process.
if
[
"
$OS
"
=
"Windows"
]
;
then
sleep
2
realpid
=
`
ps
-o
pid,ppid,comm|grep
${
pid
}
|grep
"java"
|cut
-c1-6
`
pid
=
${
realpid
}
pid
=
`
ps
-o
pid,ppid,comm|grep
${
startpid
}
|grep
"java"
|cut
-c1-6
`
fi
echo
"Waiting for Debuggee to initialize..."
...
...
@@ -91,7 +102,7 @@ startDebuggee()
echo
"Waiting
$attempts
second(s) ..."
done
echo
"Debuggee is process
$pid
"
echo
"Debuggee is process
$pid
(startpid=
${
startpid
}
)
"
}
stopDebuggee
()
...
...
@@ -100,7 +111,7 @@ stopDebuggee()
if
[
$?
!=
0
]
;
then
echo
"Error: ShutdownDebuggee failed"
failures
=
`
expr
$failures
+ 1
`
kill
-9
$
pid
kill
-9
$
{
startpid
}
fi
}
...
...
@@ -123,7 +134,7 @@ startDebuggee \
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n
\
-classpath
"
${
TESTCLASSES
}
"
ProcessAttachDebuggee
"
${
PORTFILE
}
"
$JAVA
-classpath
${
TESTCLASSES
}${
PS
}${
TESTJAVA
}
/lib/tools.jar
\
$JAVA
-classpath
"
${
TESTCLASSES
}${
PS
}${
TESTJAVA
}
/lib/tools.jar"
\
ProcessAttachDebugger
$pid
2>&1
if
[
$?
!=
0
]
;
then
failures
=
`
expr
$failures
+ 1
`
;
fi
...
...
@@ -141,7 +152,7 @@ startDebuggee \
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
y
\
-classpath
"
${
TESTCLASSES
}
"
ProcessAttachDebuggee
"
${
PORTFILE
}
"
$JAVA
-classpath
${
TESTCLASSES
}${
PS
}${
TESTJAVA
}
/lib/tools.jar
\
$JAVA
-classpath
"
${
TESTCLASSES
}${
PS
}${
TESTJAVA
}
/lib/tools.jar"
\
ProcessAttachDebugger
$pid
2>&1
# The debuggee is suspended and doesn't run until the debugger
...
...
test/com/sun/jdi/connect/spi/JdiLoadedByCustomLoader.sh
浏览文件 @
7bfa4c45
...
...
@@ -51,7 +51,7 @@ case "$OS" in
Linux
)
PS
=
":"
;;
Windows
*
)
Windows
*
|
CYGWIN
*
)
PS
=
";"
;;
*
)
...
...
@@ -71,7 +71,7 @@ SOMEOTHERDIR="${TESTCLASSES}"/someotherdir
$JAVAC
-d
"
${
TESTCLASSES
}
"
"
${
TESTSRC
}
"
/JdiLoadedByCustomLoader.java
mkdir
"
${
SOMEOTHERDIR
}
"
$JAVAC
-d
"
${
SOMEOTHERDIR
}
"
-classpath
${
TESTSRC
}${
PS
}${
TESTJAVA
}
/lib/tools.jar
\
$JAVAC
-d
"
${
SOMEOTHERDIR
}
"
-classpath
"
${
TESTSRC
}${
PS
}${
TESTJAVA
}
/lib/tools.jar"
\
"
${
TESTSRC
}
"
/ListConnectors.java
# Run the test
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录