public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* DatagramPacketTest2
@ 2002-04-30 10:21 Dalibor Topic
  2002-04-30 10:23 ` DatagramPacketTest2 John Leuner
  2002-04-30 10:49 ` DatagramPacketTest2 Mark Wielaard
  0 siblings, 2 replies; 5+ messages in thread
From: Dalibor Topic @ 2002-04-30 10:21 UTC (permalink / raw)
  To: mauve-discuss

Hello mauve hackers,

I think the zero buffer length invalid receive data
test from
gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2
is not correct. The test expects to see an
IOException, while the (1.4) spec says that receive is
supposed to block until something is received, and
truncate it if necessary.

I came accross it since it's the only test that just
plain hangs when I run it in both latest kaffe from
CVS, as well as with Sun's JDK 1.3.

best regards,

dalibor topic


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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

* Re: DatagramPacketTest2
  2002-04-30 10:21 DatagramPacketTest2 Dalibor Topic
@ 2002-04-30 10:23 ` John Leuner
  2002-04-30 10:53   ` DatagramPacketTest2 Dalibor Topic
  2002-04-30 10:49 ` DatagramPacketTest2 Mark Wielaard
  1 sibling, 1 reply; 5+ messages in thread
From: John Leuner @ 2002-04-30 10:23 UTC (permalink / raw)
  To: Dalibor Topic; +Cc: mauve-discuss

> I think the zero buffer length invalid receive data
> test from
> gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2
> is not correct. The test expects to see an
> IOException, while the (1.4) spec says that receive is
> supposed to block until something is received, and
> truncate it if necessary.
> 
> I came accross it since it's the only test that just
> plain hangs when I run it in both latest kaffe from
> CVS, as well as with Sun's JDK 1.3.

Have a fix?

John

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

* Re: DatagramPacketTest2
  2002-04-30 10:21 DatagramPacketTest2 Dalibor Topic
  2002-04-30 10:23 ` DatagramPacketTest2 John Leuner
@ 2002-04-30 10:49 ` Mark Wielaard
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Wielaard @ 2002-04-30 10:49 UTC (permalink / raw)
  To: Dalibor Topic; +Cc: mauve-discuss

Hi,

On Tue, 2002-04-30 at 19:21, Dalibor Topic wrote:
> I think the zero buffer length invalid receive data
> test from
> gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2
> is not correct. The test expects to see an
> IOException, while the (1.4) spec says that receive is
> supposed to block until something is received, and
> truncate it if necessary.
> 
> I came accross it since it's the only test that just
> plain hangs when I run it in both latest kaffe from
> CVS, as well as with Sun's JDK 1.3.

We have it disabled in the mauve configure file from libgcj for that
very same reason. I think you should feel free to remove that check from
the test.

Cheers,

Mark

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

* Re: DatagramPacketTest2
  2002-04-30 10:23 ` DatagramPacketTest2 John Leuner
@ 2002-04-30 10:53   ` Dalibor Topic
  2002-04-30 17:39     ` DatagramPacketTest2 Dalibor Topic
  0 siblings, 1 reply; 5+ messages in thread
From: Dalibor Topic @ 2002-04-30 10:53 UTC (permalink / raw)
  To: John Leuner; +Cc: mauve-discuss

Hi John,

--- John Leuner <jewel@pixie.co.za> wrote:
> > I think the zero buffer length invalid receive
> data
> > test from
> >
>
gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2
> > is not correct. The test expects to see an
> 
> Have a fix?

I'll post a patch that removes the test.

best regards,

dalibor topic

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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

* Re: DatagramPacketTest2
  2002-04-30 10:53   ` DatagramPacketTest2 Dalibor Topic
@ 2002-04-30 17:39     ` Dalibor Topic
  0 siblings, 0 replies; 5+ messages in thread
From: Dalibor Topic @ 2002-04-30 17:39 UTC (permalink / raw)
  To: Dalibor Topic, John Leuner; +Cc: mauve-discuss

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

A patch removing the test is attached.

changelog:
 *
gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java:
deleted broken zero lenth buffer test.

--- Dalibor Topic <robilad@yahoo.com> wrote:
> 
> I'll post a patch that removes the test.

happy patching,

dalibor topic

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

[-- Attachment #2: mauve.diff --]
[-- Type: application/octet-stream, Size: 691 bytes --]

diff -ur mauve/gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java new-mauve/gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java
--- mauve/gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java	Tue Apr  2 20:23:32 2002
+++ new-mauve/gnu/testlet/java/net/DatagramSocket/DatagramSocketTest2.java	Wed May  1 02:49:39 2002
@@ -229,17 +229,6 @@
 			harness.check(false, "Expected IOException");
 		}
 
-		try
-		{
-			// zero data buffer length
-			DatagramPacket pkt = new DatagramPacket(buf, 0);
-			sock.receive(pkt);
-			harness.check(true);
-		}
-		catch (IOException e)
-		{
-			errormsg("invalid_receive_data", 5, false, "IOException");
-		}
 		sock.close();
 	}
 

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

end of thread, other threads:[~2002-05-01  0:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-30 10:21 DatagramPacketTest2 Dalibor Topic
2002-04-30 10:23 ` DatagramPacketTest2 John Leuner
2002-04-30 10:53   ` DatagramPacketTest2 Dalibor Topic
2002-04-30 17:39     ` DatagramPacketTest2 Dalibor Topic
2002-04-30 10:49 ` DatagramPacketTest2 Mark Wielaard

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