diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-08 17:20:32 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-01-09 20:28:10 +0100 |
| commit | bbd4840872f70e3342308c6965ab196ed2606af1 (patch) | |
| tree | 519ebfa1fbd6cafadd2efd1038e0c8f869ff37eb /executor/test_test.go | |
| parent | c377a6514d9a4858e818e6d4637870bab2da6370 (diff) | |
sys: extend kvm support
Add new pseudo syscall syz_kvm_setup_cpu that setups VCPU into
interesting states for execution. KVM is too difficult to setup otherwise.
Lots of improvements possible, but this is a starting point.
Diffstat (limited to 'executor/test_test.go')
| -rw-r--r-- | executor/test_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/executor/test_test.go b/executor/test_test.go new file mode 100644 index 000000000..86379b93b --- /dev/null +++ b/executor/test_test.go @@ -0,0 +1,16 @@ +// Copyright 2016 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +package executor + +import "testing" + +func TestKVM(t *testing.T) { + switch res := testKVM(); { + case res < 0: + t.Skip() + case res > 0: + t.Fail() + default: + } +} |
