Skip to content
Permalink
Browse files
[FIXED JENKINS-21977] Skip HsErrPidList when running functional tests.
  • Loading branch information
jglick committed Aug 27, 2014
1 parent 1d35688 commit f39c435f8c86403653dc777516a4853e912044e3
Showing with 7 additions and 1 deletion.
  1. +3 −0 changelog.html
  2. +4 −1 core/src/main/java/jenkins/diagnosis/HsErrPidList.java
@@ -61,6 +61,9 @@
<li class=bug>
Job status page shows "Build has been executing for null on master" for flyweight tasks.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-20307">issue 20307</a>)
<li class=bug>
File locking issue when running functional tests on Windows.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-21977">issue 21977</a>)
<li class=bug>
Tolerate ?auto_refresh in reverse proxy check on /manage page.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-24014">issue 24014</a>)
@@ -30,7 +30,7 @@
*
* @author Kohsuke Kawaguchi
*/
@Extension(optional=true)
@Extension(optional=true) // TODO why would an extension using a built-in extension point need to be marked optional?
public class HsErrPidList extends AdministrativeMonitor {
/**
* hs_err_pid files that we think belong to us.
@@ -43,6 +43,9 @@
private MappedByteBuffer map;

public HsErrPidList() {
if (Functions.getIsUnitTest()) {
return;
}
try {
FileChannel ch = new FileInputStream(getSecretKeyFile()).getChannel();
map = ch.map(MapMode.READ_ONLY,0,1);

0 comments on commit f39c435

Please sign in to comment.