public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* fix missing failures in XML output
@ 2008-06-11 10:07 Christian Thalinger
  0 siblings, 0 replies; only message in thread
From: Christian Thalinger @ 2008-06-11 10:07 UTC (permalink / raw)
  To: mauve-patches ml

Hi!

This fixes missing failures in the XML output.  Commited.

- twisti

---

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.2112
diff -u -3 -p -r1.2112 ChangeLog
--- ChangeLog	9 Jun 2008 13:54:35 -0000	1.2112
+++ ChangeLog	11 Jun 2008 10:05:17 -0000
@@ -1,3 +1,9 @@
+2008-06-11  Christian Thalinger  <twisti@complang.tuwien.ac.at>
+
+	* RunnerProcess.java (check(Object, Object)): Changed code so we
+	don't have early returns and miss currentResult.addFail() calls.
+	This fixes a bug in missing failures in the XML output.
+
 2008-06-09  Christian Thalinger  <twisti@complang.tuwien.ac.at>
 
 	* gnu/testlet/java/security/AccessController/contexts.java (test):
Index: RunnerProcess.java
===================================================================
RCS file: /cvs/mauve/mauve/RunnerProcess.java,v
retrieving revision 1.17
diff -u -3 -p -r1.17 RunnerProcess.java
--- RunnerProcess.java	19 May 2008 08:19:34 -0000	1.17
+++ RunnerProcess.java	11 Jun 2008 10:05:17 -0000
@@ -546,19 +546,19 @@ public class RunnerProcess
                 lastFailureMessage = "\n           got " + gotString
                                    + "\n\n           but expected " + expString
                                    + "\n\n";
-                System.out.println(lastFailureMessage);
-                return;
               }
             else
               {
-                lastFailureMessage = "Objects were not equal";
-                System.out.println("objects were not equal.  " +
-                        "Use -debug for more information.");
-                return;
+                lastFailureMessage = "Objects were not equal.  " +
+                        "Use -debug for more information.";
               }
           }
-        lastFailureMessage = "got " + gotString + " but expected " + expString;
-        currentResult.addFail(desc + " -- " +lastFailureMessage);
+        else
+          {
+            lastFailureMessage =
+              "got " + gotString + " but expected " + expString;
+          }
+        currentResult.addFail(desc + " -- " + lastFailureMessage);
         System.out.println(lastFailureMessage);
       }
   }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-11 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 10:07 fix missing failures in XML output Christian Thalinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).