Skip to content

Commit dae7d81

Browse files
committed
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>
1 parent 7f22565 commit dae7d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/dirty_log_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ int main(int argc, char *argv[])
886886
}
887887
}
888888

889-
TEST_ASSERT(p.iterations > 2, "Iterations must be greater than two");
889+
TEST_ASSERT(p.iterations > 0, "Iterations must be greater than zero");
890890
TEST_ASSERT(p.interval > 0, "Interval must be greater than zero");
891891

892892
pr_info("Test iterations: %"PRIu64", interval: %"PRIu64" (ms)\n",

0 commit comments

Comments
 (0)