8309549: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java fails on AIX

Reviewed-by: lucy, alanb
Backport-of: 4d66d97745
This commit is contained in:
Matthias Baesken
2023-06-21 07:48:06 +00:00
parent beb0d9579b
commit 60cae33c46

View File

@@ -119,10 +119,13 @@ class DynamicLoadWarningTest {
test().whenRunning(loadJvmtiAgent1)
.stderrShouldContain(JVMTI_AGENT_WARNING);
// dynamically load loadJvmtiAgent1 twice, should be one warning
test().whenRunning(loadJvmtiAgent1)
.whenRunning(loadJvmtiAgent1)
.stderrShouldContain(JVMTI_AGENT_WARNING, 1);
// dynamically load loadJvmtiAgent1 twice, should be one warning on platforms
// that can detect if an agent library was previously loaded
if (!Platform.isAix()) {
test().whenRunning(loadJvmtiAgent1)
.whenRunning(loadJvmtiAgent1)
.stderrShouldContain(JVMTI_AGENT_WARNING, 1);
}
// opt-in via command line option to allow dynamic loading of agents
test().withOpts("-XX:+EnableDynamicAgentLoading")