On Mon, 1 Jun 2026 14:38:44 GMT, Ivan Bereziuk <[email protected]> wrote:

> Please review this test enhancement.
> Implemented the padding-tolerant Unified Logging assertions.
> A bunch of  Unified Logging assertions do not account for possible extra 
> padding in the `[<tags>]` section.
> 
> Changed short-tag UL assertions from rigid `shouldContain(...)` to 
> `shouldMatch(...)` with patterns like:
> 
> \[class,load *\] ...
> 
> 
> Covered short categories including `class,load`, `nmt`, `pagesize`, `aot`, 
> `jni`, `cds`, and `trimnative`. I left remaining `shouldContain()` hits alone 
> where the tag set is long enough - `class,resolve`,  `verification`, 
> `gc,heap,coops`, etc.).
> 
> Also updated a couple of existing rigid `shouldMatch()` UL regexes for the 
> same padding issue.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 0fe051d3
Author:    Ivan Bereziuk <[email protected]>
Committer: Ioi Lam <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/0fe051d305a8673c1c86e051012fff5f4fc04a83
Stats:     118 lines in 32 files changed: 4 ins; 0 del; 114 mod

8385427: Make unified logging checks in tests tolerant of added spaces

Reviewed-by: dholmes, iklam

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

PR: https://git.openjdk.org/jdk/pull/31338

Reply via email to