Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 36043 invoked from network); 17 Nov 2007 22:25:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2007 22:25:16 -0000 Received: (qmail 80985 invoked by uid 500); 17 Nov 2007 22:25:02 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 80929 invoked by uid 500); 17 Nov 2007 22:25:02 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 80918 invoked by uid 99); 17 Nov 2007 22:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 14:25:02 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2007 22:25:01 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id C7CAE714208; Sat, 17 Nov 2007 14:24:54 -0800 (PST) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 43892] New: - org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner returns incorrect error code Message-ID: X-Bugzilla-Reason: AssignedTo Date: Sat, 17 Nov 2007 14:24:54 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=43892 Summary: org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRu nner returns incorrect error code Product: Ant Version: 1.7.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: regression Priority: P1 Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: bcurnow@gfs.com I've been trying to upgrade our build system to Ant 1.7.0 and I'm running into a problem with the JUnit task. I have a very simple test case where I have a single class (no methods, constants, just a class) and a single test case with a single test method which simple does a fail(). I've got the JUnit task setup with haltonerror=true and haltonfailure=false so when running this test I'd expect my build to succeed. It's not. If I set holdonerror=false then it works. The core of the issue seems to be that org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner is returning an error code of 2 (ERRORS) instead of 1 (FAILURES) which is causing the JUnit task to treat the failure as an error and fail the build. I've run my build in debug mode to get the exact command that ant is executing and replaced the ant-junit.jar with the one from 1.6.2 and the error code (echo %errorlevel%) is correct so this appears to be a regression with 1.7.0. I've attached a zip containing my project and ant build script. This is run against a standard 1.7.0 binary distribution. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org