Skip to content

Commit

Permalink
Merge pull request #10276 from pshipton/rmcheck
Browse files Browse the repository at this point in the history
Remove OpenJ9 restriction on jps, jstack, etc. tests
  • Loading branch information
Shelley Lambert committed Jul 29, 2020
2 parents c4c6adf + 145fb93 commit e1f9f3e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ protected void setUp(Method testMethod) {

@BeforeSuite
protected void setupSuite() {
assertTrue(PlatformInfo.isOpenJ9(), "This test is valid only on OpenJ9");
userDir = new File(System.getProperty("user.dir"));
getJdkUtilityPath(JCMD_COMMAND);
commandExpectedOutputs = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
* Copyright (c) 2019, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -103,8 +103,6 @@ public void testHeapHisto() throws AttachNotSupportedException, IOException {

@BeforeSuite
protected void setupSuite() {
assertTrue("This test is valid only on OpenJ9", //$NON-NLS-1$
System.getProperty("java.vm.vendor").contains("OpenJ9")); //$NON-NLS-1$//$NON-NLS-2$
getJdkUtilityPath(JMAP_COMMAND);
myId = TargetManager.getVmId();
assertNotNull(myId, "Attach ID missing"); //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
* Copyright (c) 2019, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -132,7 +132,6 @@ protected void setUp(Method testMethod) {
*/
@BeforeSuite
void setupSuite() {
assertTrue("This test is valid only on OpenJ9",PlatformInfo.isOpenJ9()); //$NON-NLS-1$
getJdkUtilityPath(JPS_COMMAND);
assertTrue("Attach API failed to launch", TargetManager.waitForAttachApiInitialization()); //$NON-NLS-1$
vmId = TargetManager.getVmId();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
* Copyright (c) 2019, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -111,7 +111,6 @@ protected void setUp(Method testMethod) {

@BeforeSuite
protected void setupSuite() {
assertTrue(PlatformInfo.isOpenJ9(), "This test is valid only on OpenJ9"); //$NON-NLS-1$
getJdkUtilityPath(JSTACK_COMMAND);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
* Copyright (c) 2019, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -61,7 +61,6 @@ public void testOptionClass() throws IOException {

@BeforeSuite
protected void setupSuite() {
AssertJUnit.assertTrue("This test is valid only on OpenJ9", PlatformInfo.isOpenJ9()); //$NON-NLS-1$
getJdkUtilityPath(JSTAT_COMMAND);
AssertJUnit.assertTrue("Attach API failed to launch", TargetManager.waitForAttachApiInitialization()); //$NON-NLS-1$
vmId = TargetManager.getVmId();
Expand Down

0 comments on commit e1f9f3e

Please sign in to comment.