diff --git a/test/functional/Java8andUp/src/org/openj9/test/attachAPI/TestJps.java b/test/functional/Java8andUp/src/org/openj9/test/attachAPI/TestJps.java index 0345d8c1205..fb2b92e3fd7 100644 --- a/test/functional/Java8andUp/src/org/openj9/test/attachAPI/TestJps.java +++ b/test/functional/Java8andUp/src/org/openj9/test/attachAPI/TestJps.java @@ -53,7 +53,8 @@ public class TestJps extends AttachApiTest { public void testJpsSanity() throws IOException { TargetManager tgtMgr = new TargetManager(TARGET_VM_CLASS, null); assertTrue(CHILD_PROCESS_DID_NOT_LAUNCH, tgtMgr.syncWithTarget()); - List jpsOutput = runCommand(); + // Allow jps to be attached on z/OS, like other platforms + List jpsOutput = runCommand(Collections.singletonList("-J-Dcom.ibm.tools.attach.enable=yes")); assertTrue(TEST_PROCESS_ID_MISSING, StringUtilities.searchSubstring(vmId, jpsOutput).isPresent()); assertTrue("jps is missing", StringUtilities.searchSubstring(JPS_Class, jpsOutput).isPresent()); //$NON-NLS-1$ assertTrue(CHILD_IS_MISSING, StringUtilities.searchSubstring(tgtMgr.targetId, jpsOutput).isPresent());