RFR: Some intermittent org/openjdk/jigsaw test failures.
Alan Bateman
Alan.Bateman at oracle.com
Wed Feb 22 07:43:52 PST 2012
On 21/02/2012 20:01, Chris Hegarty wrote:
> Here is a patch to resolve some of the intermittent failing
> org/openjdk/jigsaw tests. Mainly Windows!
>
> 1) test/org/openjdk/jigsaw/TrivialWebServer.java
> test/org/openjdk/jigsaw/_RemoteRepository.java
>
> org/openjdk/jigsaw/remrepo.sh and org/openjdk/jigsaw/repolist.sh
> fail intermittently, typically Windows, occasionally on Linux. There
> is a small issue in the handling of Last-Modified in the bundled test
> HTTP server. This header only supports the granularity of seconds.
> So, it may be possible that the files lastModified date be actually
> greater than that of when it is converted to the value passed in the
> header and then converted back to millis. The solution is to use
> seconds for comparison ( since this is the granularity of the
> header).
>
> Also a minor issue in _RemoteRepository.java where, since the
> granularity is seconds, the test should ensure that the updated
> catalog be "newer". sleep!!!
>
> 2) test/org/openjdk/jigsaw/cli/JpkgArgsTest.java
>
> Skip testIfFileArgIsNotReadable since File readability cannot be set
> to false in Windows
>
> 3) test/org/openjdk/jigsaw/tester.sh
>
> <Sigh> To get resource.sh, resolver.sh, hello-view.sh to run under
> MKS on Windows. The changes should be harmless on other platforms.
>
> Only support one main entry point per test. This is what we support
> anyway, just to limit the entry in the main file since it can cause
> problems when trying to put more in, hello-view.sh for example.
> Secondly, MKS puts a hs_histo file in the working dir and may be
> mistaken for a test when actually running <Sigh>
>
> Webrev:
>
> http://cr.openjdk.java.net/~chegar/jigsaw/tests_webrev.00/webrev/
>
> -Chris.
Thanks for sorting these out, it was annoying for these tests not to be
pass on all platforms.
In _RemoteRepository. testRemove the sleep is 1s but this may not be
sufficient to ensure a new time stamp (legacy FAT32 has a granularity of
2s for example).
I'm curious about _RemoteRepositoryList.local as I would have thought
that we have many tests (in the networking area at least) that would
also fail if once could connect to the host name.
Otherwise looks okay to me.
-Alan.
More information about the jigsaw-dev
mailing list