提交 97c28e0a 编写于 作者: L Limin Wang 提交者: limin wang

Fixed JENKINS-8614 ProcessTreeTest fails on Windows

上级 70d8a6fa
......@@ -424,7 +424,16 @@ public abstract class ProcessTree implements Iterable<OSProcess>, IProcessTree,
@Override
public synchronized EnvVars getEnvironmentVariables() {
if(env==null) env = new EnvVars(p.getEnvironmentVariables());
if(env==null)
{
try
{
env = new EnvVars(p.getEnvironmentVariables());
} catch (WinpException e)
{
LOGGER.log(FINEST, "Failed to get environment variable ", e);
}
}
return env;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册