Permalink
Browse files

[Fixed JENKINS-8614] ProcessTreeTest fails on Windows

Add exception handler for getEnvironmentVariables().
  • Loading branch information...
lmwang committed Apr 5, 2013
1 parent 97c28e0 commit 4709490334c2affd6b82270449daff7a6cb1e5e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/main/java/hudson/util/ProcessTree.java
@@ -67,6 +67,7 @@

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 synchronized EnvVars getEnvironmentVariables() {
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;

0 comments on commit 4709490

Please sign in to comment.