From bf3cf0c965acde4217280429327c9012b37aaf17 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 25 Aug 2018 08:59:51 -0700 Subject: pkg/host: enable coverage on freebsd, disable on netbsd I messed it up during refactoring. It's freebsd that has coverage support. --- pkg/host/host_freebsd.go | 4 ++++ pkg/host/host_netbsd.go | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg') diff --git a/pkg/host/host_freebsd.go b/pkg/host/host_freebsd.go index 1d01cf743..238edd46d 100644 --- a/pkg/host/host_freebsd.go +++ b/pkg/host/host_freebsd.go @@ -10,3 +10,7 @@ import ( func isSupported(c *prog.Syscall, sandbox string) (bool, string) { return true, "" } + +func init() { + checkFeature[FeatureCoverage] = unconditionallyEnabled +} diff --git a/pkg/host/host_netbsd.go b/pkg/host/host_netbsd.go index 238edd46d..1d01cf743 100644 --- a/pkg/host/host_netbsd.go +++ b/pkg/host/host_netbsd.go @@ -10,7 +10,3 @@ import ( func isSupported(c *prog.Syscall, sandbox string) (bool, string) { return true, "" } - -func init() { - checkFeature[FeatureCoverage] = unconditionallyEnabled -} -- cgit mrf-deployment