selftests: KVM: Add exponent check for boolean stats
authorOliver Upton <oupton@google.com>
Tue, 19 Jul 2022 14:31:34 +0000 (14:31 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2022 12:01:23 +0000 (08:01 -0400)
commitdd4d1c3bb3f1cd91a7a67ed3d73299ecb273ff92
tree78d7f9e0953f104a899ee4d9c5ef0794722734c3
parent7eebae78bc9754564779927976f37d04c2c01b64
selftests: KVM: Add exponent check for boolean stats

The only sensible exponent for a boolean stat is 0. Add a test assertion
requiring all boolean statistics to have an exponent of 0.

Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Message-Id: <20220719143134.3246798-4-oliver.upton@linux.dev>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c