mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 13:20:34 +00:00
9d7b583eae
Reduce size of tests that run for more than 1s in short mode.
27 lines
622 B
Go
27 lines
622 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 prog_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/google/syzkaller/prog"
|
|
_ "github.com/google/syzkaller/sys"
|
|
)
|
|
|
|
func TestChecksumCalcRandom(t *testing.T) {
|
|
target, rs, iters := InitTest(t)
|
|
ct := target.DefaultChoiceTable()
|
|
for i := 0; i < iters; i++ {
|
|
p := target.Generate(rs, 10, ct)
|
|
for _, call := range p.Calls {
|
|
CalcChecksumsCall(call)
|
|
}
|
|
p.Mutate(rs, 10, ct, nil)
|
|
for _, call := range p.Calls {
|
|
CalcChecksumsCall(call)
|
|
}
|
|
}
|
|
}
|