From 32e29dda2cf82b0dab7408bdef4c0af4d0a7fef8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 9 Aug 2017 13:11:14 +0200 Subject: pkg/repro: fix invalid options minimization Repro can generate Sandbox="namespace"/UseTmpDir=false. This combination is broken for two reasons: - on second and subsequent executions of the program, it fails to create syz-tmp dir - with Procs>1, it fails right away, because all procs try to create syz-tmp dir Don't generate such combination. --- pkg/csource/csource_test.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'pkg/csource/csource_test.go') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index ae34a9499..e4e9e1f7f 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -85,12 +85,13 @@ func allOptionsPermutations() []Options { func TestOne(t *testing.T) { rs, _ := initTest(t) opts := Options{ - Threaded: true, - Collide: true, - Repeat: true, - Procs: 2, - Sandbox: "namespace", - Repro: true, + Threaded: true, + Collide: true, + Repeat: true, + Procs: 2, + Sandbox: "namespace", + Repro: true, + UseTmpDir: true, } p := prog.GenerateAllSyzProg(rs) testOne(t, p, opts) -- cgit mrf-deployment