Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
Dragonwell11
提交
87ba029f
D
Dragonwell11
项目概览
LinuxSuRen
/
Dragonwell11
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
87ba029f
编写于
4月 22, 2020
作者:
A
afarley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8239365: ProcessBuilder test modifications for AIX execution
Reviewed-by: rriggs, stuefe
上级
0174e3fd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
8 deletion
+12
-8
test/jdk/java/lang/ProcessBuilder/Basic.java
test/jdk/java/lang/ProcessBuilder/Basic.java
+12
-8
未找到文件。
test/jdk/java/lang/ProcessBuilder/Basic.java
浏览文件 @
87ba029f
...
...
@@ -74,6 +74,10 @@ public class Basic {
/* used for AIX only */
static
final
String
libpath
=
System
.
getenv
(
"LIBPATH"
);
/* Used for regex String matching for long error messages */
static
final
String
PERMISSION_DENIED_ERROR_MSG
=
"(Permission denied|error=13)"
;
static
final
String
NO_SUCH_FILE_ERROR_MSG
=
"(No such file|error=2)"
;
/**
* Returns the number of milliseconds since time given by
* startNanoTime, which must have been previously returned from a
...
...
@@ -305,7 +309,7 @@ public class Basic {
}
catch
(
IOException
e
)
{
String
m
=
e
.
getMessage
();
if
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"Permission denied"
))
!
matches
(
m
,
PERMISSION_DENIED_ERROR_MSG
))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
}
...
...
@@ -415,7 +419,7 @@ public class Basic {
}
catch
(
IOException
e
)
{
String
m
=
e
.
getMessage
();
if
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"No such file"
))
!
matches
(
m
,
NO_SUCH_FILE_ERROR_MSG
))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
@@ -428,7 +432,7 @@ public class Basic {
}
catch
(
IOException
e
)
{
String
m
=
e
.
getMessage
();
if
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"No such file"
))
!
matches
(
m
,
NO_SUCH_FILE_ERROR_MSG
))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
@@ -1982,7 +1986,7 @@ public class Basic {
}
catch
(
IOException
e
)
{
String
m
=
e
.
getMessage
();
if
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"No such file or directory"
))
!
matches
(
m
,
NO_SUCH_FILE_ERROR_MSG
))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
@@ -1998,8 +2002,8 @@ public class Basic {
String
m
=
e
.
getMessage
();
Pattern
p
=
Pattern
.
compile
(
programName
);
if
(!
matches
(
m
,
programName
)
||
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"No such file or directory"
)))
||
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
NO_SUCH_FILE_ERROR_MSG
)))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
@@ -2015,7 +2019,7 @@ public class Basic {
String
m
=
e
.
getMessage
();
if
(!
matches
(
m
,
"in directory"
)
||
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"No such file or directory"
)))
!
matches
(
m
,
NO_SUCH_FILE_ERROR_MSG
)))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
@@ -2277,7 +2281,7 @@ public class Basic {
new
File
(
"./emptyCommand"
).
delete
();
String
m
=
e
.
getMessage
();
if
(
EnglishUnix
.
is
()
&&
!
matches
(
m
,
"Permission denied"
))
!
matches
(
m
,
PERMISSION_DENIED_ERROR_MSG
))
unexpected
(
e
);
}
catch
(
Throwable
t
)
{
unexpected
(
t
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录