From 82dfec76c668997bb64a09c6db09eb6177936a0f Mon Sep 17 00:00:00 2001 From: Chris Plummer Date: Wed, 8 Apr 2020 14:11:06 -0700 Subject: [PATCH] 8242384: sa/TestSysProps.java failed due to "RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops" Reviewed-by: dcubed --- test/hotspot/jtreg/serviceability/sa/TestSysProps.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/hotspot/jtreg/serviceability/sa/TestSysProps.java b/test/hotspot/jtreg/serviceability/sa/TestSysProps.java index ee01fedc4bf..364849259db 100644 --- a/test/hotspot/jtreg/serviceability/sa/TestSysProps.java +++ b/test/hotspot/jtreg/serviceability/sa/TestSysProps.java @@ -110,9 +110,18 @@ public static void main (String... args) throws Exception { String[] jinfoLines = jinfoOut.getStdout().split("\\R"); String[] appLines = app.getOutput().getStdout().split("\\R"); int numAppProps = 0; + boolean foundStartOfList = false; for (String appProp : appLines) { boolean found; + // Skip any output that occurs before the first property + if (!foundStartOfList) { + if (appProp.indexOf("-- listing properties --") != -1) { + foundStartOfList = true; + } + continue; + } + // Find the next property in the app output int idx = appProp.indexOf("="); if (idx == -1) continue; // This line does not contain a property