Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ropalka committed Feb 28, 2024
1 parent 2a9e0b5 commit c475598
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class CLIEmbedHostControllerTestCase extends AbstractCliTestBase {

@BeforeClass
public static void beforeClass() throws Exception {
if (Runtime.version().feature() > 21) {
System.setProperty("jdk.console", "java.base"); // WFCORE-6167 workaround on JDK22+
}
Assume.assumeFalse("This test does not work with the IBM J9 JVM. There seems to be an issue with stdout" +
" logging.", TestSuiteEnvironment.isIbmJvm());

Expand All @@ -104,6 +107,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws IOException {
if (Runtime.version().feature() > 21) {
System.setProperty("jdk.console", "jdk.internal.le"); // WFCORE-6167 workaround on JDK22+
}
if (!TestSuiteEnvironment.isIbmJvm()) {
CLIEmbedUtil.copyConfig(ROOT, "domain", "logging.properties.backup", "logging.properties", false);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public class CLIEmbedServerTestCase extends AbstractCliTestBase {

@BeforeClass
public static void beforeClass() throws Exception {
if (Runtime.version().feature() > 21) {
System.setProperty("jdk.console", "java.base"); // WFCORE-6167 workaround on JDK22+
}
Assume.assumeFalse("This test does not work with the IBM J9 JVM. There seems to be an issue with stdout" +
" logging.", TestSuiteEnvironment.isIbmJvm());

Expand Down Expand Up @@ -137,6 +140,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws IOException {
if (Runtime.version().feature() > 21) {
System.setProperty("jdk.console", "jdk.internal.le"); // WFCORE-6167 workaround on JDK22+
}
if (!TestSuiteEnvironment.isIbmJvm()) {
CLIEmbedUtil.copyConfig(ROOT, "standalone", "logging.properties.backup", "logging.properties", false);
try {
Expand Down

0 comments on commit c475598

Please sign in to comment.