提交 47094903 编写于 作者: L limin wang

[Fixed JENKINS-8614] ProcessTreeTest fails on Windows

Add exception handler for getEnvironmentVariables().
上级 97c28e0a
......@@ -67,6 +67,7 @@ import java.util.logging.Logger;
import static com.sun.jna.Pointer.NULL;
import static hudson.util.jna.GNUCLibrary.LIBC;
import static java.util.logging.Level.FINE;
import static java.util.logging.Level.FINER;
import static java.util.logging.Level.FINEST;
......@@ -431,7 +432,7 @@ public abstract class ProcessTree implements Iterable<OSProcess>, IProcessTree,
env = new EnvVars(p.getEnvironmentVariables());
} catch (WinpException e)
{
LOGGER.log(FINEST, "Failed to get environment variable ", e);
LOGGER.log(FINE, "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.
先完成此消息的编辑!
想要评论请 注册