aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation_test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-10-21 18:19:56 +0200
committerAndrey Konovalov <andreyknvl@google.com>2016-11-25 09:58:17 +0100
commita5df734b8d58b4aafa6ad607e8c763b457face76 (patch)
tree8a7e3fa5f7c5e96ee3ce9d0b239818b960177940 /prog/mutation_test.go
parent599adaf8f83defba1ebddf30e242b66175cf048a (diff)
fuzzer: combine progs from corpus
Diffstat (limited to 'prog/mutation_test.go')
-rw-r--r--prog/mutation_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/mutation_test.go b/prog/mutation_test.go
index d81ddb33b..5770d247b 100644
--- a/prog/mutation_test.go
+++ b/prog/mutation_test.go
@@ -32,7 +32,7 @@ next:
// There is a chance that mutation will produce the same program.
// So we check that at least 1 out of 10 mutations actually change the program.
for try := 0; try < 10; try++ {
- p1.Mutate(rs, 10, nil)
+ p1.Mutate(rs, 10, nil, nil)
data := p.Serialize()
if !bytes.Equal(data0, data) {
t.Fatalf("program changed after clone/mutate\noriginal:\n%s\n\nnew:\n%s\n", data0, data)
@@ -136,7 +136,7 @@ nextTest:
}
for i := 0; i < 1e6; i++ {
p1 := p.Clone()
- p1.Mutate(rs, 30, nil)
+ p1.Mutate(rs, 30, nil, nil)
data1 := p1.Serialize()
if string(data1) == test[1] {
t.Logf("test #%v: success on iter %v", ti, i)