Skip to content

Commit 6d6a18f

Browse files
committed
KVM: selftests: allow two iterations of dirty_log_perf_test
Even though one iteration is not enough for the dirty log performance test (due to the cost of building page tables, zeroing memory etc.) two is okay and it is the default. Without this patch, "./dirty_log_perf_test" without any further arguments fails. Cc: Ben Gardon <bgardon@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 4fd94ec commit 6d6a18f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/kvm/dirty_log_perf_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ int main(int argc, char *argv[])
359359
}
360360
}
361361

362-
TEST_ASSERT(iterations > 2, "Iterations must be greater than two");
362+
TEST_ASSERT(iterations >= 2, "The test should have at least two iterations");
363363

364364
pr_info("Test iterations: %"PRIu64"\n", iterations);
365365

0 commit comments

Comments
 (0)