From 2bd9619f762176527aaf28fb26e4a08b614b55df Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 7 Feb 2021 13:29:53 +0100 Subject: 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). --- pkg/csource/options.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkg/csource/options.go') 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, +} -- cgit mrf-deployment