diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2001-01-05 23:34:19 +0000 |
---|---|---|
committer | Bryce McKinlay <mckinlay@redhat.com> | 2001-01-05 23:34:19 +0000 |
commit | 7065cf26cfe0c31fff008a7f0f68d2e7c3454e1f (patch) | |
tree | 08ead3d6f3cb083918c2ed047080e06e53a83c17 /test | |
parent | 56bd6d4223ac35b35d97ca302ce9421657daa30f (diff) | |
download | classpath-7065cf26cfe0c31fff008a7f0f68d2e7c3454e1f.tar.gz |
* test/java.io/PipedReaderWriterTest.java: Use Thread.sleep() to
implement delay, not System.gc().
* test/java.io/PipedStreamTest.java: Ditto.
* java/io/PipedReader: Synchronize on "lock" instead of this.
Diffstat (limited to 'test')
-rw-r--r-- | test/java.io/PipedReaderWriterTest.java | 4 | ||||
-rw-r--r-- | test/java.io/PipedStreamTest.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/java.io/PipedReaderWriterTest.java b/test/java.io/PipedReaderWriterTest.java index 92b496cd3..48d876237 100644 --- a/test/java.io/PipedReaderWriterTest.java +++ b/test/java.io/PipedReaderWriterTest.java @@ -25,7 +25,7 @@ public class PipedReaderWriterTest { public static void -main(String[] argv) +main(String[] argv) throws InterruptedException { // Set up a reasonable buffer size for this test if one is not already // specified @@ -55,7 +55,7 @@ main(String[] argv) { System.out.print(new String(buf, 0, chars_read)); System.out.flush(); - System.gc(); // A short delay + Thread.sleep(10); // A short delay total_read += chars_read; } diff --git a/test/java.io/PipedStreamTest.java b/test/java.io/PipedStreamTest.java index 0ef3f05bc..796b35846 100644 --- a/test/java.io/PipedStreamTest.java +++ b/test/java.io/PipedStreamTest.java @@ -25,7 +25,7 @@ public class PipedStreamTest { public static void -main(String[] argv) +main(String[] argv) throws InterruptedException { // Set up a reasonable buffer size for this test if one is not already // specified @@ -56,7 +56,7 @@ main(String[] argv) { System.out.print(new String(buf, 0, bytes_read)); System.out.flush(); - System.gc(); // A short delay + Thread.sleep(10); // A short delay total_read += bytes_read; } |