KVM: selftests: Tell the compiler that code after TEST_FAIL() is unreachable
authorDavid Matlack <dmatlack@google.com>
Thu, 29 Sep 2022 18:12:05 +0000 (11:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 10:39:35 +0000 (06:39 -0400)
commit62ece2c5a95cc989648c39155173d3bae27e89a3
treece08c23b4c9b228ac84f8b448c16baab246f353a
parentc96409d1e58905bfc8c73b630481228382ab8846
KVM: selftests: Tell the compiler that code after TEST_FAIL() is unreachable

Add __builtin_unreachable() to TEST_FAIL() so that the compiler knows
that any code after a TEST_FAIL() is unreachable.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220929181207.2281449-2-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/test_util.h