[kaffe] CVS kaffe (kaz): test/regression/BufferedInputStreamAvailableTest.java:

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 31 03:49:21 PDT 2005


PatchSet 6772 
Date: 2005/07/31 10:44:42
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2005-07-31 Ito Kazumitsu  <kaz at maczuka.gcd.org>

        * test/regression/BufferedInputStreamAvailableTest.java:
        New file.

        * test/regression/Makefile.am:
        Added BufferedInputStreamAvailableTest.java.

        * test/regression/Makefile.in: regenerated.

Members: 
	ChangeLog:1.4297->1.4298 
	test/regression/BufferedInputStreamAvailableTest.java:INITIAL->1.1 
	test/regression/Makefile.am:1.95->1.96 
	test/regression/Makefile.in:1.214->1.215 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4297 kaffe/ChangeLog:1.4298
--- kaffe/ChangeLog:1.4297	Sat Jul 30 16:38:56 2005
+++ kaffe/ChangeLog	Sun Jul 31 10:44:42 2005
@@ -1,3 +1,13 @@
+2005-07-31 Ito Kazumitsu  <kaz at maczuka.gcd.org>
+
+	* test/regression/BufferedInputStreamAvailableTest.java:
+	New file.
+
+	* test/regression/Makefile.am:
+	Added BufferedInputStreamAvailableTest.java.
+
+	* test/regression/Makefile.in: regenerated.
+
 2005-07-26 Dalibor Topic  <robilad at kaffe.org>
 
 	Resynced with GNU Classpath.
===================================================================
Checking out kaffe/test/regression/BufferedInputStreamAvailableTest.java
RCS:  /home/cvs/kaffe/kaffe/test/regression/BufferedInputStreamAvailableTest.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/test/regression/BufferedInputStreamAvailableTest.java	Sun Jul 31 10:49:21 2005
@@ -0,0 +1,17 @@
+import java.io.*;
+
+public class BufferedInputStreamAvailableTest {
+    public static void main(String av[]) throws Exception {
+
+	File file = new File("BufferedInputStreamAvailableTest.java");
+	long flen = file.length();
+	BufferedInputStream is = new BufferedInputStream(
+	  new FileInputStream(file), (int)flen);
+	int alen = is.available();
+	System.out.println((int)flen == alen);
+    }
+}
+
+/* Expected Output:
+true
+*/
Index: kaffe/test/regression/Makefile.am
diff -u kaffe/test/regression/Makefile.am:1.95 kaffe/test/regression/Makefile.am:1.96
--- kaffe/test/regression/Makefile.am:1.95	Wed Jun 15 15:35:27 2005
+++ kaffe/test/regression/Makefile.am	Sun Jul 31 10:44:46 2005
@@ -152,6 +152,7 @@
 	BufferedReaderTest.java \
 	ReaderReadVoidTest.java \
 	InputStreamTest.java \
+	BufferedInputStreamAvailableTest.java \
 	PipeTest.java \
         DateFormatTest.java \
 	GetField.java \
Index: kaffe/test/regression/Makefile.in
diff -u kaffe/test/regression/Makefile.in:1.214 kaffe/test/regression/Makefile.in:1.215
--- kaffe/test/regression/Makefile.in:1.214	Tue Jul 19 01:16:54 2005
+++ kaffe/test/regression/Makefile.in	Sun Jul 31 10:44:46 2005
@@ -494,6 +494,7 @@
 	BufferedReaderTest.java \
 	ReaderReadVoidTest.java \
 	InputStreamTest.java \
+	BufferedInputStreamAvailableTest.java \
 	PipeTest.java \
         DateFormatTest.java \
 	GetField.java \




More information about the kaffe mailing list