Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
9d919669
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9d919669
编写于
1月 24, 2011
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6581775: Fix the white space problem in javac shell tests
Reviewed-by: mcimadamore
上级
ada171a3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
test/tools/javac/ClassPathTest/ClassPathTest.sh
test/tools/javac/ClassPathTest/ClassPathTest.sh
+1
-1
test/tools/javac/ExtDirs/ExtDirs.sh
test/tools/javac/ExtDirs/ExtDirs.sh
+3
-3
test/tools/javac/Paths/Help.sh
test/tools/javac/Paths/Help.sh
+2
-2
test/tools/javac/javazip/Test.sh
test/tools/javac/javazip/Test.sh
+2
-2
test/tools/javac/versions/check.sh
test/tools/javac/versions/check.sh
+4
-4
未找到文件。
test/tools/javac/ClassPathTest/ClassPathTest.sh
浏览文件 @
9d919669
...
@@ -100,7 +100,7 @@ testJavac() {
...
@@ -100,7 +100,7 @@ testJavac() {
expectedResult
=
"
$1
"
;
shift
expectedResult
=
"
$1
"
;
shift
cleanup
cleanup
echo
$javac
${
TESTTOOLVMOPTS
}
"
$@
"
echo
$javac
${
TESTTOOLVMOPTS
}
"
$@
"
$javac
${
TESTTOOLVMOPTS
}
"
$@
"
"
$javac
"
${
TESTTOOLVMOPTS
}
"
$@
"
report
$expectedResult
$?
report
$expectedResult
$?
}
}
...
...
test/tools/javac/ExtDirs/ExtDirs.sh
浏览文件 @
9d919669
...
@@ -85,15 +85,15 @@ for i in 1 2 3; do
...
@@ -85,15 +85,15 @@ for i in 1 2 3; do
done
done
echo
"Test 1"
echo
"Test 1"
$javac
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext1
"
${
TESTSRC
}${
FS
}
ExtDirTest_1.java"
"
$javac
"
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext1
"
${
TESTSRC
}${
FS
}
ExtDirTest_1.java"
if
[
$?
-ne
0
]
;
then
fail
;
fi
if
[
$?
-ne
0
]
;
then
fail
;
fi
echo
"Test 2"
echo
"Test 2"
$javac
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext1
${
PS
}
ext2
"
${
TESTSRC
}${
FS
}
ExtDirTest_2.java"
"
$javac
"
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext1
${
PS
}
ext2
"
${
TESTSRC
}${
FS
}
ExtDirTest_2.java"
if
[
$?
-ne
0
]
;
then
fail
;
fi
if
[
$?
-ne
0
]
;
then
fail
;
fi
echo
"Test 3"
echo
"Test 3"
$javac
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext3
"
${
TESTSRC
}${
FS
}
ExtDirTest_3.java"
"
$javac
"
${
TESTTOOLVMOPTS
}
-d
.
-extdirs
ext3
"
${
TESTSRC
}${
FS
}
ExtDirTest_3.java"
if
[
$?
-ne
0
]
;
then
fail
;
fi
if
[
$?
-ne
0
]
;
then
fail
;
fi
echo
PASS: all tests gave expected results
echo
PASS: all tests gave expected results
...
...
test/tools/javac/Paths/Help.sh
浏览文件 @
9d919669
...
@@ -40,8 +40,8 @@ set -u
...
@@ -40,8 +40,8 @@ set -u
DiagnosticsInEnglishPlease
DiagnosticsInEnglishPlease
HELP
=
"
`
$javac
${
TESTTOOLVMOPTS
}
-help
2>&1
`
"
HELP
=
"
`
\"
$javac
\"
${
TESTTOOLVMOPTS
}
-help
2>&1
`
"
XHELP
=
"
`
$javac
${
TESTTOOLVMOPTS
}
-X
2>&1
`
"
XHELP
=
"
`
\"
$javac
\"
${
TESTTOOLVMOPTS
}
-X
2>&1
`
"
#----------------------------------------------------------------
#----------------------------------------------------------------
# Standard options
# Standard options
...
...
test/tools/javac/javazip/Test.sh
浏览文件 @
9d919669
...
@@ -66,8 +66,8 @@ check() {
...
@@ -66,8 +66,8 @@ check() {
# clean old classes
# clean old classes
rm
-f
${
TC
}${
FS
}*
.class
rm
-f
${
TC
}${
FS
}*
.class
echo
"
$
*
"
echo
"
$
@
"
if
$*
2>&1
;
then
if
"
$@
"
2>&1
;
then
actual
=
ok
actual
=
ok
else
else
actual
=
err
actual
=
err
...
...
test/tools/javac/versions/check.sh
浏览文件 @
9d919669
...
@@ -32,7 +32,7 @@ TC=${TESTCLASSES-.}
...
@@ -32,7 +32,7 @@ TC=${TESTCLASSES-.}
J
=
"
$TESTJAVA
/bin/java"
J
=
"
$TESTJAVA
/bin/java"
JC
=
"
$TESTJAVA
/bin/javac"
JC
=
"
$TESTJAVA
/bin/javac"
CFV
=
"
$
J
$
{
TESTVMOPTS
}
-cp
$TC
CheckClassFileVersion"
CFV
=
"
${
TESTVMOPTS
}
-cp
$TC
CheckClassFileVersion"
rm
-f
$TC
/X.java
$TC
/X.java
rm
-f
$TC
/X.java
$TC
/X.java
echo
'public class X { }'
>
$TC
/X.java
echo
'public class X { }'
>
$TC
/X.java
...
@@ -44,7 +44,7 @@ echo 'public enum Y { }' > $TC/Y.java
...
@@ -44,7 +44,7 @@ echo 'public enum Y { }' > $TC/Y.java
check
()
{
check
()
{
V
=
$1
;
shift
V
=
$1
;
shift
echo
"+ javac
$*
[
$V
]"
echo
"+ javac
$*
[
$V
]"
$JC
${
TESTTOOLVMOPTS
}
-d
$TC
$*
$TC
/X.java
&&
$CFV
$TC
/X.class
$V
||
exit
2
"
$JC
"
${
TESTTOOLVMOPTS
}
-d
$TC
$*
$TC
/X.java
&&
"
$J
"
$CFV
$TC
/X.class
$V
||
exit
2
}
}
check 48.0
-source
1.4
check 48.0
-source
1.4
...
@@ -73,7 +73,7 @@ check 51.0 -target 7
...
@@ -73,7 +73,7 @@ check 51.0 -target 7
fail
()
{
fail
()
{
echo
"+ javac
$*
"
echo
"+ javac
$*
"
if
$JC
${
TESTTOOLVMOPTS
}
-d
$TC
$*
;
then
if
"
$JC
"
${
TESTTOOLVMOPTS
}
-d
$TC
$*
;
then
echo
"-- did not fail as expected"
echo
"-- did not fail as expected"
exit
3
exit
3
else
else
...
@@ -83,7 +83,7 @@ fail() {
...
@@ -83,7 +83,7 @@ fail() {
pass
()
{
pass
()
{
echo
"+ javac
$*
"
echo
"+ javac
$*
"
if
$JC
${
TESTTOOLVMOPTS
}
-d
$TC
$*
;
then
if
"
$JC
"
${
TESTTOOLVMOPTS
}
-d
$TC
$*
;
then
echo
"-- passed"
echo
"-- passed"
else
else
echo
"-- failed"
echo
"-- failed"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录