# HG changeset patch # User rraghavan # Date 1483345600 28800 # Node ID 55cd866a84e9dd1e48c97b5c60053cb082c4004b # Parent bd9a5a9dc9bc71f384062e181bc149f4fe323025 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 diff -r bd9a5a9dc9bc -r 55cd866a84e9 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);