From b25fc7b83119e8dca728a199fd92e24dd4c33fa4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 26 Jul 2018 19:38:24 +0200 Subject: pkg/csource: add option to trace syscall results This will be needed for testing of generated programs. --- pkg/csource/options_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/csource/options_test.go') diff --git a/pkg/csource/options_test.go b/pkg/csource/options_test.go index f43f2582e..ad86f8786 100644 --- a/pkg/csource/options_test.go +++ b/pkg/csource/options_test.go @@ -149,6 +149,11 @@ func enumerateField(OS string, opt Options, field int) []Options { fld.SetInt(procs) opts = append(opts, opt) } + } else if fldName == "RepeatTimes" { + for _, times := range []int64{0, 10} { + fld.SetInt(times) + opts = append(opts, opt) + } } else if fldName == "FaultCall" { opts = append(opts, opt) } else if fldName == "FaultNth" { -- cgit mrf-deployment