summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-13 12:12:26 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-13 12:12:26 -0800
commit64bff178b8a3091a79d7a3cc7c255542fdd3fd80 (patch)
tree2160533a2ae2fba80e1af452f1b397434b804cfd
parenta684bfb6c035ac6f283649b007176f8bac713acd (diff)
parentb7de12fc03c6abde6d39b8bb326fc97cbc455901 (diff)
Merge pull request #4792 from lubinszARM:pr_kvm_test
PiperOrigin-RevId: 351638451
-rw-r--r--pkg/sentry/platform/kvm/kvm_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/sentry/platform/kvm/kvm_test.go b/pkg/sentry/platform/kvm/kvm_test.go
index e58acc071..a650877d6 100644
--- a/pkg/sentry/platform/kvm/kvm_test.go
+++ b/pkg/sentry/platform/kvm/kvm_test.go
@@ -412,9 +412,10 @@ func TestWrongVCPU(t *testing.T) {
// Basic test, one then the other.
bluepill(c1)
bluepill(c2)
- if c2.guestExits == 0 {
+ if c1.guestExits == 0 {
+ // Check: vCPU1 will exit due to redpill() in bluepill(c2).
// Don't allow the test to proceed if this fails.
- t.Fatalf("wrong vCPU#2 exits: vCPU1=%+v,vCPU2=%+v", c1, c2)
+ t.Fatalf("wrong vCPU#1 exits: vCPU1=%+v,vCPU2=%+v", c1, c2)
}
// Alternate vCPUs; we expect to need to trigger the