From 10c9064bfc4890e5895057021280a0558131e3eb Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 18 May 2017 14:54:02 +0200 Subject: csource: only handle SIGSEGV when necessary --- csource/csource_test.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'csource/csource_test.go') diff --git a/csource/csource_test.go b/csource/csource_test.go index 3e09a3019..dbecec54c 100644 --- a/csource/csource_test.go +++ b/csource/csource_test.go @@ -38,16 +38,18 @@ func allOptionsPermutations() []Options { for _, opt.Fault = range []bool{false, true} { for _, opt.EnableTun = range []bool{false, true} { for _, opt.UseTmpDir = range []bool{false, true} { - if opt.Collide && !opt.Threaded { - continue + for _, opt.HandleSegv = range []bool{false, true} { + if opt.Collide && !opt.Threaded { + continue + } + if !opt.Repeat && opt.Procs != 1 { + continue + } + if testing.Short() && opt.Procs != 1 { + continue + } + options = append(options, opt) } - if !opt.Repeat && opt.Procs != 1 { - continue - } - if testing.Short() && opt.Procs != 1 { - continue - } - options = append(options, opt) } } } -- cgit mrf-deployment