diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-05-18 14:54:02 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-12 19:48:23 +0200 |
| commit | 10c9064bfc4890e5895057021280a0558131e3eb (patch) | |
| tree | d651d4ecf24acbdad5bfb26e95cd943389d4e091 /csource/csource_test.go | |
| parent | acae98dc5463f8aaa13013aab1aa80509d800fb7 (diff) | |
csource: only handle SIGSEGV when necessary
Diffstat (limited to 'csource/csource_test.go')
| -rw-r--r-- | csource/csource_test.go | 20 |
1 files changed, 11 insertions, 9 deletions
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) } } } |
