aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-01-10 16:30:04 -0800
committerSean Christopherson <seanjc@google.com>2025-02-12 09:00:56 -0800
commitdae7d81e8d5819bb47d63918c98539d9666a45d1 (patch)
tree0bc76902df09fab1a4849077e35be48a36b76ec8
parentKVM: selftests: Fix an off-by-one in the number of dirty_log_test iterations (diff)
downloadwireguard-linux-dae7d81e8d5819bb47d63918c98539d9666a45d1.tar.xz
wireguard-linux-dae7d81e8d5819bb47d63918c98539d9666a45d1.zip
KVM: selftests: Allow running a single iteration of dirty_log_test
Now that dirty_log_test doesn't require running multiple iterations to verify dirty pages, and actually runs the requested number of iterations, drop the requirement that the test run at least "3" (which was really "2" at the time the test was written) iterations. Link: https://lore.kernel.org/r/20250111003004.1235645-21-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
-rw-r--r--tools/testing/selftests/kvm/dirty_log_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/dirty_log_test.c b/tools/testing/selftests/kvm/dirty_log_test.c
index 79a7ee189f28..23593d9eeba9 100644
--- a/tools/testing/selftests/kvm/dirty_log_test.c
+++ b/tools/testing/selftests/kvm/dirty_log_test.c
@@ -886,7 +886,7 @@ int main(int argc, char *argv[])
}
}
- TEST_ASSERT(p.iterations > 2, "Iterations must be greater than two");
+ TEST_ASSERT(p.iterations > 0, "Iterations must be greater than zero");
TEST_ASSERT(p.interval > 0, "Interval must be greater than zero");
pr_info("Test iterations: %"PRIu64", interval: %"PRIu64" (ms)\n",