Skip to content

Commit

Permalink
Add JFR check to test flags
Browse files Browse the repository at this point in the history
This will help JFR related tests in the future.

Related: eclipse-openj9/openj9#19917

Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
  • Loading branch information
thallium committed Jul 26, 2024
1 parent 8a5ae9e commit 18d0c67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/org/openj9/envInfo/JavaInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,17 @@ public void checkVTstandard() {
}
}

public void checkJFR() {
if ("true".equalsIgnoreCase(System.getProperty("org.eclipse.openj9.jfr.isJFREnabled"))) {
detectedTfs.add("JFR");
}
}

public String getTestFlag() {
String testFlag = "";
checkCRIU();
checkVTstandard();
checkJFR();
String envTf = System.getenv("TEST_FLAG");
String paddedTf = null;
if (envTf != null) {
Expand Down

0 comments on commit 18d0c67

Please sign in to comment.