]> www.infradead.org Git - users/hch/misc.git/commit
KVM: selftests: Replace assert() with TEST_ASSERT_EQ()
authorPratik R. Sampat <prsampat@amd.com>
Wed, 5 Mar 2025 22:59:55 +0000 (16:59 -0600)
committerSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 19:32:33 +0000 (12:32 -0700)
commitf694f30e81c4ade358eb8c75273bac1a48f0cb8f
tree3f5c1c116a4d0b433626346aa4391b094ba4f19b
parentacf064345018853ab2fc86a5637891d605ea60c8
KVM: selftests: Replace assert() with TEST_ASSERT_EQ()

For SEV tests, assert() failures on VM type or fd do not provide
sufficient error reporting. Replace assert() with TEST_ASSERT_EQ() to
obtain more detailed information on the assertion condition failure,
including the call stack.

Signed-off-by: Pratik R. Sampat <prsampat@amd.com>
Link: https://lore.kernel.org/r/20250305230000.231025-6-prsampat@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/x86/sev.c