[ https://issues.apache.org/jira/browse/EXEC-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15084495#comment-15084495 ]
Siegfried Goeschl edited comment on EXEC-86 at 1/8/16 11:28 PM: ---------------------------------------------------------------- * On Mac OS X 10.11.2 and JDK 1.8.0_66 the tests actually "works" but it leaves a thread behind which is bad * On Ubuntu 15.10 and JDK 1.8.0_66 the join works nicely and therefore the expected "ExecuteException" is never thrown * The Linux kernel 2.6.18 was released 2007 und is used in RHEL 5.5 (2010-03-30) So I think the patch fixes a problem for old Unix/Linux kernels and the test is actually broken on newer systems (while the functionality is fine) But it is broken for Mac OS X (and sometimes works if I hit a breakpoint in IntelliJ) was (Author: sgoeschl): * On Mac OS X 10.11.2 and JDK 1.8.0_66 the tests actually "works" but it leaves a thread behind which is bad * On Ubuntu 15.10 and JDK 1.8.0_66 the join works nicely and therefore the expected "ExecuteException" is never thrown * The Linux kernel 2.6.18 was released 2007 und is used in RHEL 5.5 (2010-03-30) So I think the patch fixes a problem for old Unix/Linux kernels and the test is actually broken on newer systems (while the functionality is fine) > Test failure with Java 8 and EXEC-57 unit test > ---------------------------------------------- > > Key: EXEC-86 > URL: https://issues.apache.org/jira/browse/EXEC-86 > Project: Commons Exec > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Emmanuel Bourg > Assignee: Siegfried Goeschl > Fix For: 1.4 > > > Exec57Test.testExec_57 fails on Linux with OpenJDK 8u5: > {code} > ------------------------------------------------------------------------------- > Test set: org.apache.commons.exec.issues.Exec57Test > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec <<< > FAILURE! - in org.apache.commons.exec.issues.Exec57Test > testExec_57(org.apache.commons.exec.issues.Exec57Test) Time elapsed: 0.001 > sec <<< FAILURE! > java.lang.AssertionError: Expecting an ExecuteException > at org.junit.Assert.fail(Assert.java:88) > at > org.apache.commons.exec.issues.Exec57Test.testExec_57(Exec57Test.java:82) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)