8156762: test/compiler/ciReplay/TestVMNoCompLevel.java fails with - 'Unexpected exit code for negative case: [-client]: expected 0 to not equal 0'
authorrraghavan
Mon, 02 Jan 2017 00:26:40 -0800
changeset 43415 55cd866a84e9
parent 43414 bd9a5a9dc9bc
child 43416 f8c241512446
8156762: test/compiler/ciReplay/TestVMNoCompLevel.java fails with - 'Unexpected exit code for negative case: [-client]: expected 0 to not equal 0' Summary: Corrected CLIENT_VM_AVAILABLE case Reviewed-by: dpochepk, zmajo
hotspot/test/compiler/ciReplay/TestVMNoCompLevel.java
--- a/hotspot/test/compiler/ciReplay/TestVMNoCompLevel.java	Fri Dec 30 20:11:49 2016 +0300
+++ b/hotspot/test/compiler/ciReplay/TestVMNoCompLevel.java	Mon Jan 02 00:26:40 2017 -0800
@@ -65,7 +65,11 @@
             throw new Error("Failed to read/write replay data: " + ioe, ioe);
         }
         if (CLIENT_VM_AVAILABLE) {
-            negativeTest(CLIENT_VM_OPTION);
+            if (SERVER_VM_AVAILABLE) {
+                negativeTest(CLIENT_VM_OPTION);
+            } else {
+                positiveTest(CLIENT_VM_OPTION);
+            }
         }
         if (SERVER_VM_AVAILABLE) {
             positiveTest(TIERED_DISABLED_VM_OPTION, SERVER_VM_OPTION);