RFR: JDK-8322062: com/sun/jdi/JdwpAllowTest.java does not performs negative testing with prefix length
Alex Menkov
amenkov at openjdk.org
Fri Dec 15 19:48:44 UTC 2023
The fix updated JdwpAllowTest to test negative scenarios (debugger tries to attach from not allowed address).
MaskTest ctor incorrectly calculates prefix length for negative tests and test main() calls `positiveTest` instead of `negativeTest` for `prefixLengthBad`.
Also fixes test output:
LingeredApp logs to System.out and the test logs to System.err, this makes harder log analysis.
-------------
Commit messages:
- Update JdwpAllowTest.java
Changes: https://git.openjdk.org/jdk/pull/17131/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17131&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8322062
Stats: 26 lines in 1 file changed: 8 ins; 0 del; 18 mod
Patch: https://git.openjdk.org/jdk/pull/17131.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17131/head:pull/17131
PR: https://git.openjdk.org/jdk/pull/17131
More information about the serviceability-dev
mailing list