From 032897f044f94246fefe5a7eab528cf83ae0b609 Mon Sep 17 00:00:00 2001 From: Larry Cable Date: Thu, 15 Jan 2026 15:51:15 -0800 Subject: [PATCH] JDK-8327246: fixed test issue as identified by @dholmes --- test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java index 098dd3a3979..4eea1b9560e 100644 --- a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java +++ b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java @@ -62,6 +62,6 @@ public class PrintClasses { pb.command(new PidJcmdExecutor().getCommandLine("VM.classes", "-location")); output = new OutputAnalyzer(pb.start()); - output.stdoutContains(".*(file:/|jar:).*"); + output.stdoutShouldMatch("^.*(file:/|jar:).*$"); } }