harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang" <zhanghuang...@gmail.com>
Subject Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2
Date Tue, 17 Apr 2007 11:07:19 GMT
On 4/17/07, Ruth Cao <ruoshen.c@gmail.com> wrote:
>
> You are right, Vladimir.
>
> It is just because the 'port' variable is set to 8080 and on some
> machines this port has already been occupied.  The test case will pass
> if we use Support_PortManager.getNextPort() on my side.


btw, does anyone know the purpose of failedOnce varaible in getNextPort?

May some committer pls revert this? And I'll provide a new patch for
> this JIRA. Sorry for any inconvenience caused.
>
> Vladimir Ivanov wrote:
> > I think it depends on environment. On my box this test failed on IBMVM
> > too.
> > Thanks, Vladimir
> >
> > On 4/17/07, Ruth Cao <ruoshen.c@gmail.com> wrote:
> >> Vladimir,
> >>
> >> I provide this patch and it passes on my side (IBMVME/Windows & Linux).
> >> I'll try the test on DRLVM soon, thanks.
> >>
> >> Vladimir Ivanov wrote:
> >> > New test added to the tests.api.java.net.SocketTest failed on my
> >> > Windows XP sp2 with execution log:
> >> >
> >> >    [junit] Running tests.api.java.net.SocketTest
> >> >    [junit] java.net.SocketTimeoutException: The operation timed out
> >> >    [junit]     at
> >> >
> >> org.apache.harmony.luni.net.PlainSocketImpl.accept(PlainSocketImpl.java
> :121)
> >>
> >> >
> >> >    [junit]     at
> >> java.net.ServerSocket.implAccept(ServerSocket.java:262)
> >> >    [junit]     at java.net.ServerSocket.accept(ServerSocket.java:147)
> >> >    [junit]     at
> >> > tests.api.java.net.SocketTest$ServerThread.run(SocketTest.java:118)
> >> >    [junit]     at java.lang.Thread.run(Thread.java:661)
> >> >    [junit] Tests run: 57, Failures: 1, Errors: 0, Time elapsed:
> >> 41.11 sec
> >> >    [junit] Test tests.api.java.net.SocketTest FAILED
> >> >
> >> > Test was added by commit:
> >> > Author: ndbeyer
> >> > Date: Mon Apr 16 19:30:11 2007
> >> > New Revision: 529472
> >> >
> >> > Should we fix this test or revert this commit?
> >> >
> >> > thanks, Vladimir
> >> >
> >>
> >>
> >> --
> >> Regards,
> >>
> >> Ruth Cao
> >> China Software Development Lab, IBM
> >>
> >>
> >>
> >
>
>
> --
> Regards,
>
> Ruth Cao
> China Software Development Lab, IBM
>
>
>


-- 
Best regards,
Andrew Zhang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message