Skip to content

Commit

Permalink
KVM: selftests: allow two iterations of dirty_log_perf_test
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Nov 9, 2020
1 parent 4fd94ec commit 6d6a18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/kvm/dirty_log_perf_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int main(int argc, char *argv[])
}
}

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

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

Expand Down

0 comments on commit 6d6a18f

Please sign in to comment.