selftests: breakpoints: fix computation of test plan
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Jun 2020 00:15:43 +0000 (20:15 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Jul 2020 21:47:24 +0000 (15:47 -0600)
commitce32659b3673767cd92c4919d4000aa0dc056c1c
tree5c8b0647c32cad550bb46f30664661070eedd6d0
parentb85d387c9b091953d5e8ac4c72af6747c1a554e3
selftests: breakpoints: fix computation of test plan

The computation of the test plan uses the available_cpus bitset
before calling sched_getaffinity to fill it in.  The resulting
plan is bogus, fix it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/breakpoints/step_after_suspend_test.c