From 316b78336c9fbf290e6d423f831f9eff1a84bc40 Mon Sep 17 00:00:00 2001 From: Coleen Phillimore Date: Mon, 4 Dec 2023 18:01:31 +0000 Subject: [PATCH] 8321276: runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java failed with "'17 2: jdk/test/lib/apps ' missing from stdout/stderr" Reviewed-by: dcubed --- .../cds/appcds/dynamicArchive/DynamicSharedSymbols.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java b/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java index f07c775a003..f60a4097df7 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicSharedSymbols.java @@ -90,7 +90,8 @@ public class DynamicSharedSymbols extends DynamicArchiveTestBase { ProcessBuilder pb = new ProcessBuilder(); pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), Long.toString(pid), "VM.symboltable", "-verbose"}); OutputAnalyzer output = CDSTestUtils.executeAndLog(pb, "jcmd-symboltable"); - output.shouldContain("17 2: jdk/test/lib/apps\n"); + output.shouldContain("17 3: jdk/test/lib/apps\n"); // 3 because a TempSymbol will be found in the TempSymbolCleanupDelayer queue. + // Note: we might want to drain the queue before CDS dumps but this is correct for now, unless the queue length changes. output.shouldContain("Dynamic shared symbols:\n"); output.shouldContain("5 65535: Hello\n");