[rfc][icedtea-web] Fix DeadLockTest reproducers

Jiri Vanek jvanek at redhat.com
Tue Mar 3 14:07:59 UTC 2015


On 03/03/2015 02:50 PM, Jie Kang wrote:
> Hello,
>
> The asserts in DeadLockTestTest contain a division by two which results in failure.
>
> E.g.
>
> testSimpletest1lunchFork:
>    Assert.assertEquals("launched JVMs must be exactly 2, was " + (during.size() - before.size()) / 2, 2, (during.size() - before.size()) / 2);
>
> This test launches two applets forked (in separate JVMs). during == 3, before == 1, so it correctly launches two JVMs, however the assert divides this by 2 for some reason, (3 - 1) / 2 == 1 != 2.
>
> These divisions don't make sense and have been removed.
>
> Thoughts? Okay to push?
>
>
> Regards,
>
sure go on.


More information about the distro-pkg-dev mailing list