aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-27 14:23:08 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-05-27 13:05:20 +0000
commit8bbf94ce31b652c168de6ea784942b54ea09e80c (patch)
tree55bb8625c738e8b917384334437a5cd83b8247b1 /pkg/csource/csource_test.go
parent3eba45d51db7adab6fb1d3c7e71d699ca6bea4b3 (diff)
prog: make minimization parameters explicit
Add an explicit parameter to only run call removal.
Diffstat (limited to 'pkg/csource/csource_test.go')
-rw-r--r--pkg/csource/csource_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go
index 86f18af39..7d67927a3 100644
--- a/pkg/csource/csource_test.go
+++ b/pkg/csource/csource_test.go
@@ -91,7 +91,7 @@ func testTarget(t *testing.T, target *prog.Target, full bool) {
opts = allOptionsSingle(target.OS)
opts = append(opts, ExecutorOpts)
} else {
- minimized, _ := prog.Minimize(syzProg, -1, false, func(p *prog.Prog, call int) bool {
+ minimized, _ := prog.Minimize(syzProg, -1, prog.MinimizeParams{}, func(p *prog.Prog, call int) bool {
return len(p.Calls) == len(syzProg.Calls)
})
p.Calls = append(p.Calls, minimized.Calls...)