8192840: serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java failing on Windows
Summary: make error message searching logic more general so it works on Windows
Reviewed-by: dcubed, sspitsyn, dholmes
--- a/test/hotspot/jtreg/serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java Thu Nov 30 18:38:20 2017 -0500
+++ b/test/hotspot/jtreg/serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java Thu Nov 30 16:28:47 2017 -0800
@@ -37,7 +37,8 @@
OutputAnalyzer output = null;
output = executor.execute("JVMTI.agent_load " + libpath);
- output.shouldContain("Agent_OnAttach is not available");
+ output.shouldContain("Agent_OnAttach");
+ output.shouldContain("is not available");
} catch (Exception e) {
throw new RuntimeException(e);
}