diff --git a/test/jdk/jfr/jcmd/TestJcmdConfigure.java b/test/jdk/jfr/jcmd/TestJcmdConfigure.java index 81146d9f34856033220bc6b311de1d5285dbdb58..c77bf2fbc54fc66bc0df205c7d9637e472951bc7 100644 --- a/test/jdk/jfr/jcmd/TestJcmdConfigure.java +++ b/test/jdk/jfr/jcmd/TestJcmdConfigure.java @@ -99,9 +99,7 @@ public class TestJcmdConfigure { private static void testNegative(String configName, Object value) { try { - // Syntactically invalid arguments are catched by the JCMD framework where an error code of 1 is returned. - // Syntactically valid arguments that are semantically invalid (invalid value ranges for example) are handled by JFR code, it will always return a value of 0. - JcmdHelper.jcmd(configName.equals(UNSUPPORTED_OPTION) ? 1 : 0, "JFR.configure", configName + "=" + value); + JcmdHelper.jcmd(1, "JFR.configure", configName + "=" + value); } catch(Exception e) { testExceptions.add(e); }