From 18d0c6700b0d9ac8bf90b57a14e54dd7e3cb6472 Mon Sep 17 00:00:00 2001 From: Gengchen Tuo Date: Fri, 26 Jul 2024 10:32:16 -0400 Subject: [PATCH] Add JFR check to test flags This will help JFR related tests in the future. Related: https://github.com/eclipse-openj9/openj9/pull/19917 Signed-off-by: Gengchen Tuo --- src/org/openj9/envInfo/JavaInfo.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/org/openj9/envInfo/JavaInfo.java b/src/org/openj9/envInfo/JavaInfo.java index fdc02f01..ed53bf9c 100644 --- a/src/org/openj9/envInfo/JavaInfo.java +++ b/src/org/openj9/envInfo/JavaInfo.java @@ -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) {