RFR: 8313357: Revisit requiring SA tests on OSX to either run as root or use sudo
Chris Plummer
cjplummer at openjdk.org
Fri Aug 11 02:15:29 UTC 2023
On OSX, don't require that sudo be used to launch SA tools if developer mode is enabled. More details are in the CR.
Due to this change, the following tests are no longer being skipped if the host has developer mode is enabled. They previously required running as root because if sudo was used some files were created with root ownership and could not be deleted:
serviceability/sa/ClhsdbDumpclass.java
serviceability/sa/TestClassDump.java
I tested on my home system (M1) with developer mode enabled and also disabled. Also tested with CI, which appears to have developer mode disabled on most hosts, but there are a few where it is enabled.
-------------
Commit messages:
- Merge branch 'master' into 8313357_dev_mode
- don't require sudo when in developer mode
Changes: https://git.openjdk.org/jdk/pull/15238/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15238&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8313357
Stats: 55 lines in 1 file changed: 51 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/15238.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15238/head:pull/15238
PR: https://git.openjdk.org/jdk/pull/15238
More information about the serviceability-dev
mailing list