Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8242384: sa/TestSysProps.java failed due to "RuntimeException: Could …
Browse files Browse the repository at this point in the history
…not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops"

Reviewed-by: dcubed
  • Loading branch information
plummercj committed Apr 8, 2020
1 parent 3a6249d commit 82dfec7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/hotspot/jtreg/serviceability/sa/TestSysProps.java
Expand Up @@ -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
Expand Down

0 comments on commit 82dfec7

Please sign in to comment.