diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-05-18 19:18:26 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-12 19:48:23 +0200 |
| commit | 120e26c2fecf4fcabc18af43329171d6afba02b4 (patch) | |
| tree | 9e4668c6d0610d63217eb22dde910e8b18357e87 /csource/csource_test.go | |
| parent | c99b02d2248fbdcd6f44037326b16c928f4423f1 (diff) | |
csourse: don't generate debug printfs
Diffstat (limited to 'csource/csource_test.go')
| -rw-r--r-- | csource/csource_test.go | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/csource/csource_test.go b/csource/csource_test.go index 097e014ec..7b68954f3 100644 --- a/csource/csource_test.go +++ b/csource/csource_test.go @@ -40,19 +40,21 @@ func allOptionsPermutations() []Options { for _, opt.UseTmpDir = range []bool{false, true} { for _, opt.HandleSegv = range []bool{false, true} { for _, opt.WaitRepeat = range []bool{false, true} { - if opt.Collide && !opt.Threaded { - continue + for _, opt.Debug = range []bool{false, true} { + if opt.Collide && !opt.Threaded { + continue + } + if !opt.Repeat && opt.Procs != 1 { + continue + } + if !opt.Repeat && opt.WaitRepeat { + continue + } + if testing.Short() && opt.Procs != 1 { + continue + } + options = append(options, opt) } - if !opt.Repeat && opt.Procs != 1 { - continue - } - if !opt.Repeat && opt.WaitRepeat { - continue - } - if testing.Short() && opt.Procs != 1 { - continue - } - options = append(options, opt) } } } |
