aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/options_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-26 19:38:24 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-27 10:22:23 +0200
commitb25fc7b83119e8dca728a199fd92e24dd4c33fa4 (patch)
tree15e95c4062be3f23ab8f66c05e33465d40c1d870 /pkg/csource/options_test.go
parent9d92841b4e4d0ac0f97f983cd90087323f27c26c (diff)
pkg/csource: add option to trace syscall results
This will be needed for testing of generated programs.
Diffstat (limited to 'pkg/csource/options_test.go')
-rw-r--r--pkg/csource/options_test.go5
1 files changed, 5 insertions, 0 deletions
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" {