[jdk17] RFR: 8271350: runtime/Safepoint tests use OutputAnalyzer::shouldMatch instead of shouldContaint

Igor Ignatyev iignatyev at openjdk.java.net
Tue Jul 27 20:03:41 UTC 2021


Hi all,

could you please review this small patch?

from JBS:
> `runtime/Safepoint/TestAbortVMOnSafepointTimeout.java` and `TestAbortOnVMOperationTimeout.java` tests use `j.t.l.p.OutputAnalyzer::shouldMatch` method, which accepts a regular expression, yet pass a fixed string as an argument.

testing: ``runtime/Safepoint/` on `{windows,linux,macos}-x64`

Thanks,
-- Igor

-------------

Commit messages:
 - 8271350

Changes: https://git.openjdk.java.net/jdk17/pull/285/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=285&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271350
  Stats: 5 lines in 2 files changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/285.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/285/head:pull/285

PR: https://git.openjdk.java.net/jdk17/pull/285


More information about the hotspot-runtime-dev mailing list