public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: "Michael Koch" <konqueror@gmx.de>, <mauve-discuss@sources.redhat.com>
Subject: RE: Unicode test noise
Date: Mon, 31 Jan 2005 12:14:00 -0000	[thread overview]
Message-ID: <D92197D0A6547B44A1567814F851FA68069405@LEMBU.sumatrasoftware.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

Michael Koch wrote:
> Am Montag, 31. Januar 2005 12:34 schrieb Jeroen Frijters:
> > Hi,
> >
> > Does anyone have any objections against this patch to eliminate the
> > noise that the unicode test generates?
> 
> Why don't you just skip the tests ? You change would make the tests 
> don't show up in summaries when they succeed.

I don't want to skip the tests, it's just that I don't think it is
meaningful to have that single test count as 3.5 million tests, and in
addition it makes the -verbose option incredibly slow.

How about this patch?

Regards,
Jeroen

[-- Attachment #2: unicode.txt --]
[-- Type: text/plain, Size: 1235 bytes --]

Index: gnu/testlet/java/lang/Character/UnicodeBase.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Character/UnicodeBase.java,v
retrieving revision 1.1
diff -u -r1.1 UnicodeBase.java
--- gnu/testlet/java/lang/Character/UnicodeBase.java	8 Apr 2004 16:05:36 -0000	1.1
+++ gnu/testlet/java/lang/Character/UnicodeBase.java	31 Jan 2005 12:13:11 -0000
@@ -43,7 +43,7 @@
   public int failures;
   public int tests;
   TestHarness harness;
-
+  private boolean failed;
 
   public UnicodeBase()
   {
@@ -266,17 +266,18 @@
 	
   protected void reportError( String what)
   {
-    harness.check(false, what);
+    failed = true;
+    harness.debug(what);
   }
 	
   protected void reportError( int ch, String what)
   {
-    harness.check(false, stringChar(ch) +" incorrectly reported as " + what);
+    failed = true;
+    harness.debug(stringChar(ch) +" incorrectly reported as " + what);
   }
 	
   protected void checkPassed()
   {
-    harness.check(true);
   }
 
   public boolean range(int mid, int low, int high)
@@ -675,6 +676,8 @@
 	    else checkPassed();
 	  }
       }
+
+    harness.check(!failed);
   }
 
 }

             reply	other threads:[~2005-01-31 12:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 12:14 Jeroen Frijters [this message]
2005-01-31 12:32 ` Thomas Zander
  -- strict thread matches above, loose matches on Subject: below --
2005-01-31 11:35 Jeroen Frijters
2005-01-31 11:41 ` Michael Koch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D92197D0A6547B44A1567814F851FA68069405@LEMBU.sumatrasoftware.com \
    --to=jeroen@sumatra.nl \
    --cc=konqueror@gmx.de \
    --cc=mauve-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).