Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
45a09e24
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
45a09e24
编写于
10月 30, 2012
作者:
K
kshefov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7072120: No mac os x support in several regression tests
Reviewed-by: anthony, serb
上级
41949a31
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
105 addition
and
45 deletion
+105
-45
test/java/awt/Toolkit/AutoShutdown/ShowExitTest/ShowExitTest.sh
...ava/awt/Toolkit/AutoShutdown/ShowExitTest/ShowExitTest.sh
+40
-18
test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh
...OExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh
+43
-21
test/javax/imageio/stream/StreamCloserLeak/run_test.sh
test/javax/imageio/stream/StreamCloserLeak/run_test.sh
+22
-6
未找到文件。
test/java/awt/Toolkit/AutoShutdown/ShowExitTest/ShowExitTest.sh
浏览文件 @
45a09e24
#!/bin/ksh -p
#!/bin/ksh -p
#
#
# Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2007,
2012,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
# This code is free software; you can redistribute it and/or modify it
# This code is free software; you can redistribute it and/or modify it
...
@@ -39,7 +39,7 @@ status=1
...
@@ -39,7 +39,7 @@ status=1
#Call this from anywhere to fail the test with an error message
#Call this from anywhere to fail the test with an error message
# usage: fail "reason why the test failed"
# usage: fail "reason why the test failed"
fail
()
fail
()
{
echo
"The test failed :-("
{
echo
"The test failed :-("
echo
"
$*
"
1>&2
echo
"
$*
"
1>&2
echo
"exit status was
$status
"
echo
"exit status was
$status
"
...
@@ -48,7 +48,7 @@ fail()
...
@@ -48,7 +48,7 @@ fail()
#Call this from anywhere to pass the test with a message
#Call this from anywhere to pass the test with a message
# usage: pass "reason why the test passed if applicable"
# usage: pass "reason why the test passed if applicable"
pass
()
pass
()
{
echo
"The test passed!!!"
{
echo
"The test passed!!!"
echo
"
$*
"
1>&2
echo
"
$*
"
1>&2
exit
0
exit
0
...
@@ -64,20 +64,42 @@ OS=`uname -s`
...
@@ -64,20 +64,42 @@ OS=`uname -s`
case
"
$OS
"
in
case
"
$OS
"
in
SunOS
)
SunOS
)
VAR
=
"One value for Sun"
VAR
=
"One value for Sun"
DEFAULT_JDK
=
/
usr/local/java/jdk1.2/solaris
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
;;
Linux
)
Linux
)
VAR
=
"A different value for Linux"
VAR
=
"A different value for Linux"
DEFAULT_JDK
=
/
usr/local/java/jdk1.4/linux-i386
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
;;
Windows_95
|
Windows_98
|
Windows_NT
|
Windows_ME
)
Darwin
)
VAR
=
"A different value for MacOSX"
DEFAULT_JDK
=
/usr
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
Windows
*
)
VAR
=
"A different value for Win32"
VAR
=
"A different value for Win32"
DEFAULT_JDK
=
/usr/local/java/jdk1.2/win32
DEFAULT_JDK
=
"C:/Program Files/Java/jdk1.8.0"
FILESEP
=
"
\\
"
FILESEP
=
"
\\
"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
CYGWIN
*
)
VAR
=
"A different value for Cygwin"
DEFAULT_JDK
=
"/cygdrive/c/Program
\
Files/Java/jdk1.8.0"
FILESEP
=
"/"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
;;
# catch all other OSs
# catch all other OSs
...
@@ -88,8 +110,8 @@ case "$OS" in
...
@@ -88,8 +110,8 @@ case "$OS" in
esac
esac
# Want this test to run standalone as well as in the harness, so do the
# Want this test to run standalone as well as in the harness, so do the
# following to copy the test's directory into the harness's scratch directory
# following to copy the test's directory into the harness's scratch directory
# and set all appropriate variables:
# and set all appropriate variables:
if
[
-z
"
${
TESTJAVA
}
"
]
;
then
if
[
-z
"
${
TESTJAVA
}
"
]
;
then
...
@@ -104,7 +126,7 @@ if [ -z "${TESTJAVA}" ] ; then
...
@@ -104,7 +126,7 @@ if [ -z "${TESTJAVA}" ] ; then
if
[
-n
"
$1
"
]
;
if
[
-n
"
$1
"
]
;
then
TESTJAVA
=
$1
then
TESTJAVA
=
$1
else
echo
"no JDK specified on command line so using default!"
else
echo
"no JDK specified on command line so using default!"
TESTJAVA
=
$DEFAULT_JDK
TESTJAVA
=
$DEFAULT_JDK
fi
fi
TESTSRC
=
.
TESTSRC
=
.
TESTCLASSES
=
.
TESTCLASSES
=
.
...
@@ -113,25 +135,25 @@ fi
...
@@ -113,25 +135,25 @@ fi
echo
"JDK under test is:
$TESTJAVA
"
echo
"JDK under test is:
$TESTJAVA
"
#Deal with .class files:
#Deal with .class files:
if
[
-n
"
${
STANDALONE
}
"
]
;
if
[
-n
"
${
STANDALONE
}
"
]
;
then
then
#if standalone, remind user to cd to dir. containing test before running it
#if standalone, remind user to cd to dir. containing test before running it
echo
"Just a reminder: cd to the dir containing this test when running it"
echo
"Just a reminder: cd to the dir containing this test when running it"
# then compile all .java files (if there are any) into .class files
# then compile all .java files (if there are any) into .class files
if
[
-a
*
.java
]
;
if
[
-a
*
.java
]
;
then
echo
"Reminder, this test should be in its own directory with all"
then
echo
"Reminder, this test should be in its own directory with all"
echo
"supporting files it needs in the directory with it."
echo
"supporting files it needs in the directory with it."
${
TESTJAVA
}
/bin/javac ./
*
.java
;
${
TESTJAVA
}
/bin/javac ./
*
.java
;
fi
fi
# else in harness so copy all the class files from where jtreg put them
# else in harness so copy all the class files from where jtreg put them
# over to the scratch directory this test is running in.
# over to the scratch directory this test is running in.
else
cp
${
TESTCLASSES
}
/
*
.class
.
;
else
cp
${
TESTCLASSES
}
/
*
.class
.
;
fi
fi
#if in test harness, then copy the entire directory that the test is in over
#if in test harness, then copy the entire directory that the test is in over
# to the scratch directory. This catches any support files needed by the test.
# to the scratch directory. This catches any support files needed by the test.
if
[
-z
"
${
STANDALONE
}
"
]
;
if
[
-z
"
${
STANDALONE
}
"
]
;
then
cp
${
TESTSRC
}
/
*
.
then
cp
${
TESTSRC
}
/
*
.
fi
fi
#Just before executing anything, make sure it has executable permission!
#Just before executing anything, make sure it has executable permission!
...
...
test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh
浏览文件 @
45a09e24
#
#
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2008,
2012,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
# This code is free software; you can redistribute it and/or modify it
# This code is free software; you can redistribute it and/or modify it
...
@@ -38,7 +38,7 @@ status=1
...
@@ -38,7 +38,7 @@ status=1
#Call this from anywhere to fail the test with an error message
#Call this from anywhere to fail the test with an error message
# usage: fail "reason why the test failed"
# usage: fail "reason why the test failed"
fail
()
fail
()
{
echo
"The test failed :-("
{
echo
"The test failed :-("
echo
"
$*
"
1>&2
echo
"
$*
"
1>&2
echo
"exit status was
$status
"
echo
"exit status was
$status
"
...
@@ -47,7 +47,7 @@ fail()
...
@@ -47,7 +47,7 @@ fail()
#Call this from anywhere to pass the test with a message
#Call this from anywhere to pass the test with a message
# usage: pass "reason why the test passed if applicable"
# usage: pass "reason why the test passed if applicable"
pass
()
pass
()
{
echo
"The test passed!!!"
{
echo
"The test passed!!!"
echo
"
$*
"
1>&2
echo
"
$*
"
1>&2
exit
0
exit
0
...
@@ -99,20 +99,42 @@ OS=`uname -s`
...
@@ -99,20 +99,42 @@ OS=`uname -s`
case
"
$OS
"
in
case
"
$OS
"
in
SunOS
)
SunOS
)
VAR
=
"One value for Sun"
VAR
=
"One value for Sun"
DEFAULT_JDK
=
/
usr/local/java/jdk1.2.1/solaris
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
;;
Linux
)
Linux
)
VAR
=
"A different value for Linux"
VAR
=
"A different value for Linux"
DEFAULT_JDK
=
/
usr/local/java/jdk1.4/linux-i386
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
;;
Windows_95
|
Windows_98
|
Windows_NT
|
Windows_ME
|
CYGWIN_NT-5.1
)
Darwin
)
VAR
=
"A different value for MacOSX"
DEFAULT_JDK
=
/usr
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
Windows
*
)
VAR
=
"A different value for Win32"
VAR
=
"A different value for Win32"
DEFAULT_JDK
=
/usr/local/java/jdk1.2.1/win32
DEFAULT_JDK
=
"C:/Program Files/Java/jdk1.8.0"
FILESEP
=
"
\\
"
FILESEP
=
"
\\
"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
CYGWIN
*
)
VAR
=
"A different value for Cygwin"
DEFAULT_JDK
=
"/cygdrive/c/Program
\
Files/Java/jdk1.8.0"
FILESEP
=
"/"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
;;
# catch all other OSs
# catch all other OSs
...
@@ -132,12 +154,12 @@ fi
...
@@ -132,12 +154,12 @@ fi
# note that the name of the executable is in the fail string as well.
# note that the name of the executable is in the fail string as well.
# this is how to check for presence of the compiler, etc.
# this is how to check for presence of the compiler, etc.
#RESOURCE=`whence SomeProgramOrFileNeeded`
#RESOURCE=`whence SomeProgramOrFileNeeded`
#if [ "${RESOURCE}" = "" ] ;
#if [ "${RESOURCE}" = "" ] ;
# then fail "Need SomeProgramOrFileNeeded to perform the test" ;
# then fail "Need SomeProgramOrFileNeeded to perform the test" ;
#fi
#fi
# Want this test to run standalone as well as in the harness, so do the
# Want this test to run standalone as well as in the harness, so do the
# following to copy the test's directory into the harness's scratch directory
# following to copy the test's directory into the harness's scratch directory
# and set all appropriate variables:
# and set all appropriate variables:
if
[
-z
"
${
TESTJAVA
}
"
]
;
then
if
[
-z
"
${
TESTJAVA
}
"
]
;
then
...
@@ -152,7 +174,7 @@ if [ -z "${TESTJAVA}" ] ; then
...
@@ -152,7 +174,7 @@ if [ -z "${TESTJAVA}" ] ; then
if
[
-n
"
$1
"
]
;
if
[
-n
"
$1
"
]
;
then
TESTJAVA
=
$1
then
TESTJAVA
=
$1
else
echo
"no JDK specified on command line so using default!"
else
echo
"no JDK specified on command line so using default!"
TESTJAVA
=
$DEFAULT_JDK
TESTJAVA
=
$DEFAULT_JDK
fi
fi
TESTSRC
=
.
TESTSRC
=
.
TESTCLASSES
=
.
TESTCLASSES
=
.
...
@@ -161,25 +183,25 @@ fi
...
@@ -161,25 +183,25 @@ fi
echo
"JDK under test is:
$TESTJAVA
"
echo
"JDK under test is:
$TESTJAVA
"
#Deal with .class files:
#Deal with .class files:
if
[
-n
"
${
STANDALONE
}
"
]
;
if
[
-n
"
${
STANDALONE
}
"
]
;
then
then
#if standalone, remind user to cd to dir. containing test before running it
#if standalone, remind user to cd to dir. containing test before running it
echo
"Just a reminder: cd to the dir containing this test when running it"
echo
"Just a reminder: cd to the dir containing this test when running it"
# then compile all .java files (if there are any) into .class files
# then compile all .java files (if there are any) into .class files
if
[
-a
*
.java
]
;
if
[
-a
*
.java
]
;
then
echo
"Reminder, this test should be in its own directory with all"
then
echo
"Reminder, this test should be in its own directory with all"
echo
"supporting files it needs in the directory with it."
echo
"supporting files it needs in the directory with it."
${
TESTJAVA
}
/bin/javac ./
*
.java
;
${
TESTJAVA
}
/bin/javac ./
*
.java
;
fi
fi
# else in harness so copy all the class files from where jtreg put them
# else in harness so copy all the class files from where jtreg put them
# over to the scratch directory this test is running in.
# over to the scratch directory this test is running in.
else
cp
${
TESTCLASSES
}
/
*
.class
.
;
else
cp
${
TESTCLASSES
}
/
*
.class
.
;
fi
fi
#if in test harness, then copy the entire directory that the test is in over
#if in test harness, then copy the entire directory that the test is in over
# to the scratch directory. This catches any support files needed by the test.
# to the scratch directory. This catches any support files needed by the test.
#if [ -z "${STANDALONE}" ] ;
#if [ -z "${STANDALONE}" ] ;
# then cp ${TESTSRC}/* .
# then cp ${TESTSRC}/* .
#fi
#fi
#Just before executing anything, make sure it has executable permission!
#Just before executing anything, make sure it has executable permission!
...
@@ -198,7 +220,7 @@ chmod 777 ./*
...
@@ -198,7 +220,7 @@ chmod 777 ./*
# this shell test as appropriate ( 0 status is considered a pass here )
# this shell test as appropriate ( 0 status is considered a pass here )
# The test verifies that appletviewer correctly works with the different
# The test verifies that appletviewer correctly works with the different
# names of the files, including relative and absolute paths
# names of the files, including relative and absolute paths
# 6619458: exclude left brace from the name of the files managed by the VCS
# 6619458: exclude left brace from the name of the files managed by the VCS
NAME
=
'test.html'
NAME
=
'test.html'
...
...
test/javax/imageio/stream/StreamCloserLeak/run_test.sh
浏览文件 @
45a09e24
#!/bin/ksh -p
#!/bin/ksh -p
#
#
# Copyright (c) 2009, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 201
2
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
# This code is free software; you can redistribute it and/or modify it
# This code is free software; you can redistribute it and/or modify it
...
@@ -78,28 +78,44 @@ OS=`uname -s`
...
@@ -78,28 +78,44 @@ OS=`uname -s`
case
"
$OS
"
in
case
"
$OS
"
in
SunOS
)
SunOS
)
VAR
=
"One value for Sun"
VAR
=
"One value for Sun"
DEFAULT_JDK
=
/
usr/local/java/jdk1.2/solaris
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
PATHSEP
=
":"
TMP
=
"/tmp"
TMP
=
"/tmp"
;;
;;
Linux
|
Darwin
)
Linux
)
VAR
=
"A different value for Linux"
VAR
=
"A different value for Linux"
DEFAULT_JDK
=
/
usr/local/java/jdk1.4/linux-i386
DEFAULT_JDK
=
/
FILESEP
=
"/"
FILESEP
=
"/"
PATHSEP
=
":"
PATHSEP
=
":"
TMP
=
"/tmp"
TMP
=
"/tmp"
;;
;;
Windows_95
|
Windows_98
|
Windows_NT
|
Windows_ME
|
CYGWIN
*
)
Darwin
)
VAR
=
"A different value for MacOSX"
DEFAULT_JDK
=
/usr
FILESEP
=
"/"
PATHSEP
=
":"
TMP
=
"/tmp"
;;
Windows
*
)
VAR
=
"A different value for Win32"
VAR
=
"A different value for Win32"
DEFAULT_JDK
=
/usr/local/java/jdk1.2/win32
DEFAULT_JDK
=
"C:/Program Files/Java/jdk1.8.0"
FILESEP
=
"
\\
"
FILESEP
=
"
\\
"
PATHSEP
=
";"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
;;
CYGWIN
*
)
VAR
=
"A different value for Cygwin"
DEFAULT_JDK
=
"/cygdrive/c/Program
\
Files/Java/jdk1.8.0"
FILESEP
=
"/"
PATHSEP
=
";"
TMP
=
`
cd
"
${
SystemRoot
}
/Temp"
;
echo
${
PWD
}
`
;;
# catch all other OSs
# catch all other OSs
*
)
*
)
echo
"Unrecognized system!
$OS
"
echo
"Unrecognized system!
$OS
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录