aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-25 08:59:51 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-25 08:59:51 -0700
commitbf3cf0c965acde4217280429327c9012b37aaf17 (patch)
tree54f497cecf6dbb8bc4e2a3a3de98987c8105bc33 /pkg
parent20749b59878b6ec3912908536c38c9465bc0c46d (diff)
pkg/host: enable coverage on freebsd, disable on netbsd
I messed it up during refactoring. It's freebsd that has coverage support.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/host/host_freebsd.go4
-rw-r--r--pkg/host/host_netbsd.go4
2 files changed, 4 insertions, 4 deletions
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
-}