Please review test fix: 6787605 "OpenSolaris doesn't have /usr/ucb/ps so ShellScaffold fails"
Tim Bell
Tim.Bell at Sun.COM
Thu Oct 1 16:20:29 PDT 2009
jdk/test/com/sun/jdi/ShellScaffold.sh is used in many of
the jdk/test/com/sun/jdi JTreg tests. JDI tests are unlike
other JTreg tests because they typically start up two
additional JVMs - one for the debugger and one for the debugee.
This raises the problem of keeping track of the child process(es)
and shutting them down properly.
/usr/ucb came from the days of Solaris 1 (SunOS 4), and has
been deprecated for years. This should not come as a surprise,
but the removal of /usr/ucb/ps in OpenSolaris breaks the scaffold
on OpenSolaris test machines.
Here is the bug report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6787605
This fix uses /usr/bin/pgrep instead on Solaris and OpenSolaris,
which is a supported interface:
http://cr.openjdk.java.net/~tbell/6787605.00
With this fix, the JDI tests passed on JPRT systems, and also
on my office desktop, which is running OpenSolaris 2008.06.
Thanks in advance for any reviewers:
Tim
More information about the serviceability-dev
mailing list