Skip to content
Commit 594a1c27 authored by Colton Lewis's avatar Colton Lewis Committed by Sean Christopherson
Browse files

KVM: selftests: Fix filename reporting in guest asserts



Fix filename reporting in guest asserts by ensuring the GUEST_ASSERT
macro records __FILE__ and substituting REPORT_GUEST_ASSERT for many
repetitive calls to TEST_FAIL.

Previously filename was reported by using __FILE__ directly in the
selftest, wrongly assuming it would always be the same as where the
assertion failed.

Signed-off-by: default avatarColton Lewis <coltonlewis@google.com>
Reported-by: default avatarRicardo Koller <ricarkol@google.com>
Fixes: 4e18bccc
Link: https://lore.kernel.org/r/20220615193116.806312-5-coltonlewis@google.com


[sean: convert more TEST_FAIL => REPORT_GUEST_ASSERT instances]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent ddcb57af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment