From dbb675c19aa6ca328f4449ccd1ff605f9cb744e9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 18 Mar 2021 16:55:19 +0100 Subject: qapi: New -compat deprecated-input=crash Policy "crash" calls abort() when deprecated input is received. Bugs in integration tests may mask the error from policy "reject". Provide a larger hammer: crash outright. Masking that seems unlikely. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Message-Id: <20210318155519.1224118-12-armbru@redhat.com> --- qapi/compat.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qapi/compat.json') diff --git a/qapi/compat.json b/qapi/compat.json index fc24a58..ae3afc2 100644 --- a/qapi/compat.json +++ b/qapi/compat.json @@ -11,11 +11,12 @@ # # @accept: Accept silently # @reject: Reject with an error +# @crash: abort() the process # # Since: 6.0 ## { 'enum': 'CompatPolicyInput', - 'data': [ 'accept', 'reject' ] } + 'data': [ 'accept', 'reject', 'crash' ] } ## # @CompatPolicyOutput: -- cgit v1.1