4.
General Problems
-
My test only passes if I don't use jtreg to run it.
Why does it fail in jtreg?
-
How do I set the
CLASSPATH
environment variable for my test?
-
Why don't you just pass all of my
shell environment variables to the JVM running the test?
-
Why is the default to run tests in
another JVM?
-
Why would I ever want to run in the
same JVM?
-
Should a test call the
System.exit
method?
-
My test only applies to one
platform and it will fail/not run in others. How do I prevent the harness from
running it on the wrong platform?
-
How can I make
applet
and main
action tests read from data
files?
-
Can I use
package
statements in my tests?
-
Why can't multiple test source
files in the same directory have package-private classes of the same
name?
-
Should a test catch
Throwable
, Exception
, or
Error
?
-
My test requires that I use
information printed to
System.out
or System.err
to
determine whether a test passed or failed. When I run my test in the harness, I
can't seem to find these output streams.
-
My test does tricky things that are
not supported by
jtreg
. Can I still write a regression
test?
-
What happens if my test returns
when there are still threads running?
-
If my bug hasn't been fixed, and
the test is run, the JVM crashes. How do I make sure that the test doesn't
cause the harness to crash?
-
The JavaTest harness is running into problems
running the test because of issues with the JDK I'm trying to test. What can I
do?
-
My test requires that I install my
own security manager, but it appears that the JavaTest harness has already installed
one. What do I do?
-
Can I automate running regtests or
can I run the tests on a regular basis?
-
I run all (or a huge part) of the
regression test suite as part of a cron job or other nightly process. I'd like
to generate my own reports or I'd like to send myself e-mail whenever a test
fails. Do I have to parse the verbose output or the
.jtr
file?