From 120e26c2fecf4fcabc18af43329171d6afba02b4 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 18 May 2017 19:18:26 +0200 Subject: csourse: don't generate debug printfs --- csource/csource_test.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'csource/csource_test.go') 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) } } } -- cgit mrf-deployment