aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-01-11 00:50:43 +0000
committerSean Christopherson <[email protected]>2025-02-14 15:01:27 +0000
commiteead13d493af0c2d3b8025da4acb2a9ef854a26a (patch)
tree5e31611043cfa8ce9d4e840f665ff5829febea91 /tools/testing/selftests/net/lib/py/utils.py
parentKVM: selftests: Close VM's binary stats FD when releasing VM (diff)
downloadkernel-eead13d493af0c2d3b8025da4acb2a9ef854a26a.tar.gz
kernel-eead13d493af0c2d3b8025da4acb2a9ef854a26a.zip
KVM: selftests: Assert that __vm_get_stat() actually finds a stat
Fail the test if it attempts to read a stat that doesn't exist, e.g. due to a typo (hooray, strings), or because the test tried to get a stat for the wrong scope. As is, there's no indiciation of failure and @data is left untouched, e.g. holds '0' or random stack data in most cases. Fixes: 8448ec5993be ("KVM: selftests: Add NX huge pages test") Link: https://lore.kernel.org/r/[email protected] [sean: fixup spelling mistake, courtesy of Colin Ian King] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions