If I run it right now I get:
----------System.out:(1/47)----------
SA attach not expected to work - test skipped.
----------System.err:(1/15)----------
STATUS:Passed.
because the test is skipped, since we don't run them as root, as determined in /test/lib/jdk/test/lib/Platform.java:
private static boolean canAttachOSX() {
return userName.equals("root");
}
It would be useful to have the tests actually running on Mac OS X, for greater coverage (assuming jhsdb is supported on Mac)
This applies to running the test via Mach5 and locally using "/jtreg/bin/jtreg ...", though locally one can run it as "sudo /jtreg/bin/jtreg ..." and it will indeed execute, but this should be done by default somehow (if possible).
- duplicates
-
JDK-8238268 Many SA tests are not running on OSX because they do not attempt to use sudo when available
- Resolved
-
JDK-8205503 SA: runOnCore() of ClhsdbLauncher incorrectly checks for the ptrace related attach permissions
- Closed
- relates to
-
JDK-8215544 SA: Modify ClhsdbLauncher to add sudo privileges to enable MacOS tests on Mach5
- Resolved
-
JDK-8215568 Refactor SA clhsdb tests to use ClhsdbLauncher
- Resolved
-
JDK-8216545 SA: Enable the remaining tests on macOS
- Closed
-
JDK-8193497 SA: Modify ClhsdbLauncher and other tests to throw errors on attach failures
- Closed