From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13198 invoked by alias); 5 Mar 2003 22:47:05 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 13189 invoked from network); 5 Mar 2003 22:47:01 -0000 Received: from unknown (HELO merc62.na.sas.com) (149.173.6.49) by 172.16.49.205 with SMTP; 5 Mar 2003 22:47:01 -0000 Received: from merc18.na.sas.com ([10.16.12.224]) by 10.19.11.46 with InterScan Messaging Security Suite; Wed, 05 Mar 2003 17:46:59 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6410.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Question about PipedInputStream available method Date: Wed, 05 Mar 2003 22:47:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Patrick Ellis" To: X-SW-Source: 2003-q1/txt/msg00033.txt.bz2 =20=20=20=20=20 In the gnu/testlet/java/io/PipedStream/Test.java code, there is a call to m= ethod available() which Returns the number of bytes that can be read from t= his input stream without blocking. The first call to the method returns zer= o which causes the test to fail. Should the code be change to=20 harness.check(pis.available() >=3D 0, "available()"); // Now set up our reader PipedInputStream pis =3D new PipedInputStream(); pis.connect(pos); new Thread(pstw).start(); harness.check(pis.available() > 0, "available()"); Pat Ellis SDE Build and Test Team Phone: (919) 531-0355=20=20=20 R2263 Patrick.Ellis@sas.com SAS... The Power to Know