]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Use TEST_ASSERT_EQ() in test_vmx_nested_state()
authorYosry Ahmed <yosry.ahmed@linux.dev>
Fri, 21 Nov 2025 20:48:02 +0000 (20:48 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 8 Jan 2026 20:54:19 +0000 (12:54 -0800)
commitbda6ae6f29664b659671f872a2adda3c1c2f5dd6
tree825981d1819332491f566a0075ae4b7d65414635
parent6f4d3ebc24c6ef92e196ebbd389a3f2bfdc7a144
KVM: selftests: Use TEST_ASSERT_EQ() in test_vmx_nested_state()

The assert messages do not add much value, so use TEST_ASSERT_EQ(),
which also nicely displays the addresses in hex. While at it, also
assert the values of state->flags.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251121204803.991707-4-yosry.ahmed@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/vmx_set_nested_state_test.c