diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-27 17:29:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-27 15:38:45 +0000 |
| commit | 0cdd36fc443630fa8b6c5d7903cb7adc0baac5b5 (patch) | |
| tree | f5c27bbb4a809970d83cba87df5bf7638639763c /pkg/mgrconfig | |
| parent | 1f9b5e5c3aa41af3a1403e3933f20a2776eb5f4b (diff) | |
sys/targets: add consts for gvisor/starnix
Lint started warning about duplicate "gvisor" const in pkg/cover.
Add gvisor/starnix consts to sys/targets package to avoid duplication.
Diffstat (limited to 'pkg/mgrconfig')
| -rw-r--r-- | pkg/mgrconfig/load.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/mgrconfig/load.go b/pkg/mgrconfig/load.go index db44caa89..2bccdc7df 100644 --- a/pkg/mgrconfig/load.go +++ b/pkg/mgrconfig/load.go @@ -207,7 +207,7 @@ func (cfg *Config) initTimeouts() { // Assuming qemu emulation. // Quick tests of mmap syscall on arm64 show ~9x slowdown. slowdown = 10 - case cfg.Type == "gvisor" && cfg.Cover && strings.Contains(cfg.Name, "-race"): + case cfg.Type == targets.GVisor && cfg.Cover && strings.Contains(cfg.Name, "-race"): // Go coverage+race has insane slowdown of ~350x. We can't afford such large value, // but a smaller value should be enough to finish at least some syscalls. // Note: the name check is a hack. |
