aboutsummaryrefslogtreecommitdiffstats
path: root/prog/rand_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-17 10:24:13 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-18 11:34:42 +0200
commit9d7b583eae5f9d459920d207848863917fc58416 (patch)
tree1937b6ba28dc8f669b769279e8ed2ec95f73d1d7 /prog/rand_test.go
parentb6fa239fd5e9e120ac2b8e9f3d7f608125a7f986 (diff)
prog: reduce size of -short tests
Reduce size of tests that run for more than 1s in short mode.
Diffstat (limited to 'prog/rand_test.go')
-rw-r--r--prog/rand_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/prog/rand_test.go b/prog/rand_test.go
index 960f9735f..60cf28a1c 100644
--- a/prog/rand_test.go
+++ b/prog/rand_test.go
@@ -86,9 +86,10 @@ func TestEnabledCalls(t *testing.T) {
enabled[target.SyscallMap[c]] = true
}
ct := target.BuildChoiceTable(nil, enabled)
- for i := 0; i < 100; i++ {
+ const tries = 10
+ for i := 0; i < tries; i++ {
p := target.Generate(rs, 50, ct)
- for it := 0; it < iters/10; it++ {
+ for it := 0; it < iters/tries; it++ {
p.Mutate(rs, 50, ct, nil)
}
for _, c := range p.Calls {