Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
e312f49b
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e312f49b
编写于
1月 21, 2015
作者:
G
goetz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8068013: [TESTBUG] Aix support in hotspot jtreg tests
Reviewed-by: ctornqvi, fzhinkin, farvidsson
上级
da5d941b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
18 deletion
+30
-18
test/runtime/6888954/vmerrors.sh
test/runtime/6888954/vmerrors.sh
+3
-2
test/test_env.sh
test/test_env.sh
+13
-8
test/testlibrary/com/oracle/java/testlibrary/Platform.java
test/testlibrary/com/oracle/java/testlibrary/Platform.java
+14
-8
未找到文件。
test/runtime/6888954/vmerrors.sh
浏览文件 @
e312f49b
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013,
2015,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -61,11 +61,12 @@ bad_data_ptr_re='(SIGILL|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).* at pc='
# EXCEPTION_ACCESS_VIOLATION - Win-*
# SIGBUS - Solaris SPARC-64
# SIGSEGV - Linux-*, Solaris SPARC-32, Solaris X86-*
# SIGILL - Aix
#
# Note: would like to use "pc=0x00*0f," in the pattern, but Solaris SPARC-*
# gets its signal at a PC in test_error_handler().
#
bad_func_ptr_re
=
'(SIGBUS|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).* at pc='
bad_func_ptr_re
=
'(SIGBUS|SIGSEGV|
SIGILL|
EXCEPTION_ACCESS_VIOLATION).* at pc='
guarantee_re
=
'guarantee[(](str|num).*failed: *'
fatal_re
=
'fatal error: *'
tail_1
=
'.*expected null'
...
...
test/test_env.sh
浏览文件 @
e312f49b
#!/bin/sh
#
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013,
2015,
Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,7 +53,7 @@ echo "TESTCLASSES=${TESTCLASSES}"
# set platform-dependent variables
OS
=
`
uname
-s
`
case
"
$OS
"
in
SunOS
|
Linux
|
Darwin
)
AIX
|
Darwin
|
Linux
|
SunOS
)
NULL
=
/dev/null
PS
=
":"
FS
=
"/"
...
...
@@ -130,25 +130,30 @@ then
fi
VM_OS
=
"unknown"
grep
"
solaris
"
vm_version.out
>
${
NULL
}
grep
"
aix
"
vm_version.out
>
${
NULL
}
if
[
$?
=
0
]
then
VM_OS
=
"solaris"
VM_OS
=
"aix"
fi
grep
"bsd"
vm_version.out
>
${
NULL
}
if
[
$?
=
0
]
then
VM_OS
=
"bsd"
fi
grep
"linux"
vm_version.out
>
${
NULL
}
if
[
$?
=
0
]
then
VM_OS
=
"linux"
fi
grep
"
window
s"
vm_version.out
>
${
NULL
}
grep
"
solari
s"
vm_version.out
>
${
NULL
}
if
[
$?
=
0
]
then
VM_OS
=
"
window
s"
VM_OS
=
"
solari
s"
fi
grep
"
bsd
"
vm_version.out
>
${
NULL
}
grep
"
windows
"
vm_version.out
>
${
NULL
}
if
[
$?
=
0
]
then
VM_OS
=
"
bsd
"
VM_OS
=
"
windows
"
fi
VM_CPU
=
"unknown"
...
...
test/testlibrary/com/oracle/java/testlibrary/Platform.java
浏览文件 @
e312f49b
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013,
2015,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -61,20 +61,24 @@ public class Platform {
return
dataModel
.
equals
(
"64"
);
}
public
static
boolean
is
Solaris
()
{
return
isOs
(
"
sunos
"
);
public
static
boolean
is
Aix
()
{
return
isOs
(
"
aix
"
);
}
public
static
boolean
is
Windows
()
{
return
isOs
(
"
win
"
);
public
static
boolean
is
Linux
()
{
return
isOs
(
"
linux
"
);
}
public
static
boolean
isOSX
()
{
return
isOs
(
"mac"
);
}
public
static
boolean
isLinux
()
{
return
isOs
(
"linux"
);
public
static
boolean
isSolaris
()
{
return
isOs
(
"sunos"
);
}
public
static
boolean
isWindows
()
{
return
isOs
(
"win"
);
}
private
static
boolean
isOs
(
String
osname
)
{
...
...
@@ -130,7 +134,9 @@ public class Platform {
*/
public
static
boolean
shouldSAAttach
()
throws
Exception
{
if
(
isLinux
())
{
if
(
isAix
())
{
return
false
;
// SA not implemented.
}
else
if
(
isLinux
())
{
return
canPtraceAttachLinux
();
}
else
if
(
isOSX
())
{
return
canAttachOSX
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录