syzkaller/executor/test_test.go
Dmitry Vyukov 1ac75f06ad executor: fix copyin of values
Currently non-bitfield values are copied incorrectly.
Probably all turned into zeros or something.
Fix that. Add test.
2017-01-17 19:04:37 +01:00

27 lines
456 B
Go

// 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 TestCopyin(t *testing.T) {
switch res := testCopyin(); {
case res < 0:
t.Skip()
case res > 0:
t.Fail()
default:
}
}
func TestKVM(t *testing.T) {
switch res := testKVM(); {
case res < 0:
t.Skip()
case res > 0:
t.Fail()
default:
}
}