linux/tools/testing/selftests/kvm/aarch64
Colton Lewis 594a1c271c 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: Colton Lewis <coltonlewis@google.com>
Reported-by: Ricardo Koller <ricarkol@google.com>
Fixes: 4e18bccc2e
Link: https://lore.kernel.org/r/20220615193116.806312-5-coltonlewis@google.com
[sean: convert more TEST_FAIL => REPORT_GUEST_ASSERT instances]
Signed-off-by: Sean Christopherson <seanjc@google.com>
2022-07-13 18:14:08 -07:00
..
arch_timer.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
debug-exceptions.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
get-reg-list.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
hypercalls.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
psci_test.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00
vcpu_width_config.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
vgic_init.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
vgic_irq.c KVM: selftests: Fix filename reporting in guest asserts 2022-07-13 18:14:08 -07:00