8192840: serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java failing on Windows
authorcjplummer
Thu, 30 Nov 2017 16:28:47 -0800
changeset 48174 0a52219cfb16
parent 48173 cb63f08dad03
child 48175 babef393c286
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
test/hotspot/jtreg/serviceability/dcmd/jvmti/AttachFailed/AttachNoEntry.java
--- 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);
         }