aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/options.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-02-07 13:29:53 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-02-08 21:15:33 +0100
commit2bd9619f762176527aaf28fb26e4a08b614b55df (patch)
tree0052c13acd1df5136305039887b0c89791546af5 /pkg/csource/options.go
parent31a5cb08390f7ae45c40c79345c4ce5d17ac66bf (diff)
pkg/runtest: check arch requirement early
Need to check arch requirement early as some programs may fail to deserialize on some arches due to missing syscalls. See discussion on #2380. Also support negative arch requirements (-arch=amd64).
Diffstat (limited to 'pkg/csource/options.go')
-rw-r--r--pkg/csource/options.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/csource/options.go b/pkg/csource/options.go
index 3c1790483..df8811559 100644
--- a/pkg/csource/options.go
+++ b/pkg/csource/options.go
@@ -310,3 +310,15 @@ func PrintAvailableFeaturesFlags() {
fmt.Printf(" %s - %s\n", name, features[name].Description)
}
}
+
+// This is the main configuration used by executor, only for testing.
+var ExecutorOpts = Options{
+ Threaded: true,
+ Collide: true,
+ Repeat: true,
+ Procs: 2,
+ Slowdown: 1,
+ Sandbox: "none",
+ Repro: true,
+ UseTmpDir: true,
+}