public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* [mauve] Patch for BufferedByteOutputStream
@ 2002-06-12 16:12 Dalibor Topic
  2002-06-13 10:08 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Dalibor Topic @ 2002-06-12 16:12 UTC (permalink / raw)
  To: Mauve Discussion Mailing List

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

Hi,

attached you'll find a patch that fixes the interrupt
test for java.io.BufferedByteOutputStream. The patch
was created by Timothy Stack <stack@cs.utah.edu>.

best regards,

dalibor topic



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

[-- Attachment #2: interrupt.diff.txt --]
[-- Type: text/plain, Size: 1068 bytes --]

Index: interrupt.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/io/BufferedByteOutputStream/interrupt.java,v
retrieving revision 1.2
diff -u -r1.2 interrupt.java
--- interrupt.java	27 Sep 2001 15:36:17 -0000	1.2
+++ interrupt.java	11 Jun 2002 18:36:26 -0000
@@ -25,6 +25,11 @@
     super (null);
   }
 
+  private int getCount()
+  {
+    return this.count;
+  }
+
   public void test (TestHarness harness)
   {
     // We create an output stream that will throw an
@@ -36,7 +41,7 @@
     int BUFFER = 7;
 
     helper h = new helper (10);
-    BufferedOutputStream out = new interrupt (h, BUFFER);
+    interrupt out = new interrupt (h, BUFFER);
 
     boolean ok = false;
     int i = -1;
@@ -63,7 +68,7 @@
     // In theory the BufferedOutputStream should notice the
     // InterruptedIOException and update its internal data structure
     // accordingly.
-    harness.check (count, 4);
+    harness.check (out.getCount(), 4);
 
     h = new helper (10);
     out = new interrupt (h, BUFFER);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mauve] Patch for BufferedByteOutputStream
  2002-06-12 16:12 [mauve] Patch for BufferedByteOutputStream Dalibor Topic
@ 2002-06-13 10:08 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2002-06-13 10:08 UTC (permalink / raw)
  To: Dalibor Topic; +Cc: Mauve Discussion Mailing List

>>>>> "Dalibor" == Dalibor Topic <robilad@yahoo.com> writes:

Dalibor> attached you'll find a patch that fixes the interrupt
Dalibor> test for java.io.BufferedByteOutputStream. The patch
Dalibor> was created by Timothy Stack <stack@cs.utah.edu>.

Thanks.  I'm checking this in.

Please send a ChangeLog entry with patches.  It makes things a bit
easier for me.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-13 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-12 16:12 [mauve] Patch for BufferedByteOutputStream Dalibor Topic
2002-06-13 10:08 ` Tom Tromey

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).