Skip to content

Commit

Permalink
Merge pull request #11298 from pshipton/fixjps
Browse files Browse the repository at this point in the history
For z/OS, set attach.enable=yes running testJpsSanity
  • Loading branch information
llxia committed Nov 27, 2020
2 parents cfa18de + acac3d6 commit dad5099
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> jpsOutput = runCommand();
// Allow jps to be attached on z/OS, like other platforms
List<String> 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());
Expand Down

0 comments on commit dad5099

Please sign in to comment.