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
--- 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);