From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30730 invoked by alias); 17 Feb 2009 14:46:28 -0000 Received: (qmail 30678 invoked by uid 22791); 17 Feb 2009 14:46:27 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_34,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Feb 2009 14:46:17 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n1HEkFhM011926 for ; Tue, 17 Feb 2009 09:46:15 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1HEkDT8022666 for ; Tue, 17 Feb 2009 09:46:13 -0500 Received: from toddler.yyz.redhat.com (toddler.yyz.redhat.com [10.15.16.34]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1HEkEiZ015979 for ; Tue, 17 Feb 2009 09:46:15 -0500 Message-ID: <499ACDAB.1070805@redhat.com> Date: Tue, 17 Feb 2009 14:46:00 -0000 From: Omair Majid User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: mauve-patches@sources.redhat.com Subject: [PATCH] Output xml results for tests with compilation problems Content-Type: multipart/mixed; boundary="------------080909020303070104030603" X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2009/txt/msg00006.txt.bz2 This is a multi-part message in MIME format. --------------080909020303070104030603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 862 Hi, When mauve fails to start a test which because of compilation problems, no xml output is gnenerated: $ java Harness -vm /usr/bin/java gnu.java.security.hash.TestOfHashFactory -xmlout output.xml FAIL: gnu.java.security.hash.TestOfHashFactory exception when loading: java.lang.Error: Unresolved compilation problems: The import gnu.java cannot be resolved The import gnu.java cannot be resolved IMessageDigest cannot be resolved to a type HashFactory cannot be resolved HashFactory cannot be resolved [snip] The xml output file contains no failures: The attached patch fixes mauve so that a failure is reported in the xml file. Cheers, Omair --------------080909020303070104030603 Content-Type: text/plain; name="xmloutput-on-failed-to-compile-tests.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xmloutput-on-failed-to-compile-tests.patch" Content-length: 374 --- RunnerProcess.java 11 Jun 2008 10:08:00 -0000 +++ RunnerProcess.java 13 Feb 2009 16:50:41 -0000 @@ -362,6 +362,10 @@ if (verbose) System.out.println("TEST FAILED: exception when loading " + stripPrefix(name)); + + if (report != null) + report.addTestResult(currentResult); + return; } --------------080909020303070104030603--