This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[mauve] Patch for BufferedByteOutputStream


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]