Max (Weijun) Wang wrote:
But I think your shell tests may have been just problematic when multiple
instances of them are run on one machine, like a port number problem.
That's hard for me to diagnose quickly, so when tests failed with
any kind of BindException or 'address already in use', I just added
them to the list and moved on.

Most of the failed tests for me is in sun/security/tools, where there's no port number problem. In these tests, I normally run keytool/javac/jar/jarsigner multiple times, and generate keystore, java, jar files. I assume all these are done inside a single directory.

Is it possible that these tests may run parallel? Then I may need to use different file names for all of them.

Yes. If they are using temp filenames, they need to be unique.
With JPRT, both the server VM and client VM are tested, and also
multiple JPRT clients could be running on one machine.
So there are multiple ways that a test could have multiple instances
running.

With samevm on windows, it's also critical that all input and output
streams are closed, or tests that floow the test will fail.

-kto


Thanks
Max

Reply via email to