Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
44004961
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
44004961
编写于
8月 09, 2011
作者:
C
chegar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7073295: TEST_BUG: test/java/lang/instrument/ManifestTest.sh causing havoc (win)
Reviewed-by: mchung
上级
b3edf646
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
5 deletion
+18
-5
test/java/lang/instrument/ManifestTest.sh
test/java/lang/instrument/ManifestTest.sh
+18
-5
未找到文件。
test/java/lang/instrument/ManifestTest.sh
浏览文件 @
44004961
...
...
@@ -26,7 +26,7 @@
# @summary JLI JAR manifest processing should ignore leading and trailing white space.
# @author Daniel D. Daugherty
#
# @run build ManifestTestApp
# @run build ManifestTestApp
ExampleForBootClassPath
# @run shell/timeout=900 ManifestTest.sh
#
...
...
@@ -42,6 +42,9 @@ make_a_JAR() {
expect_retrans_line
=
"isRetransformClassesSupported()=false"
can_set_nmp_line
=
""
expect_set_nmp_line
=
"isNativeMethodPrefixSupported()=false"
# some tests create directories with spaces in their name,
# explicitly delete these.
to_be_deleted
=
""
while
[
$#
!=
0
]
;
do
case
"
$1
"
in
...
...
@@ -59,30 +62,33 @@ make_a_JAR() {
boot_cp_line2
)
boot_cp_line
=
"Boot-Class-Path: has_leading_blank"
expect_boot_cp_line
=
"ExampleForBootClassPath was loaded."
to_be_deleted
=
" has_leading_blank"
mkdir
-p
has_leading_blank
" has_leading_blank"
# the good class is in the directory without the blank
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class
\
has_leading_blank
# the bad class is in the directory with the blank
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class.bad
\
" has_leading_blank
"
/ExampleForBootClassPath.class
" has_leading_blank
/ExampleForBootClassPath.class"
;;
boot_cp_line3
)
boot_cp_line
=
"Boot-Class-Path: has_trailing_blank "
expect_boot_cp_line
=
"ExampleForBootClassPath was loaded."
to_be_deleted
=
"has_trailing_blank "
mkdir
-p
has_trailing_blank
"has_trailing_blank "
# the good class is in the directory without the blank
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class
\
has_trailing_blank
# the bad class is in the directory with the blank
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class.bad
\
"has_trailing_blank
"
/ExampleForBootClassPath.class
"has_trailing_blank
/ExampleForBootClassPath.class"
;;
boot_cp_line4
)
boot_cp_line
=
"Boot-Class-Path: has_leading_and_trailing_blank "
expect_boot_cp_line
=
"ExampleForBootClassPath was loaded."
to_be_deleted
=
" has_leading_and_trailing_blank "
mkdir
-p
has_leading_and_trailing_blank
\
" has_leading_and_trailing_blank "
# the good class is in the directory without the blanks
...
...
@@ -90,18 +96,19 @@ make_a_JAR() {
has_leading_and_trailing_blank
# the bad class is in the directory with the blanks
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class.bad
\
" has_leading_and_trailing_blank
"
/ExampleForBootClassPath.class
" has_leading_and_trailing_blank
/ExampleForBootClassPath.class"
;;
boot_cp_line5
)
boot_cp_line
=
"Boot-Class-Path: has_embedded blank"
expect_boot_cp_line
=
"ExampleForBootClassPath was loaded."
to_be_deleted
=
"has_embedded blank"
mkdir
-p
has_embedded
"has_embedded blank"
# the good class is in the first blank separated word
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class has_embedded
# the bad class is in the directory with the blank
cp
-p
$OUT_OF_THE_WAY
/ExampleForBootClassPath.class.bad
\
"has_embedded blank
"
/ExampleForBootClassPath.class
"has_embedded blank
/ExampleForBootClassPath.class"
;;
can_redef_line1
)
...
...
@@ -429,6 +436,12 @@ while read token; do
touch
$FAIL_MARKER
fi
#clean up any problematic directories
if
[
-n
"
$to_be_deleted
"
]
;
then
echo
"Test removing [
$to_be_deleted
]"
rm
-rf
"
$to_be_deleted
"
fi
echo
"===== end test case:
$token
====="
echo
done
<<
EOF
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录