From 0f23e882fa8ef33d4f44a3fc0a5bba7a32889801 Mon Sep 17 00:00:00 2001 From: m00nbsd <42475391+m00nbsd@users.noreply.github.com> Date: Thu, 11 Jun 2020 23:16:52 +0200 Subject: sys/netbsd: add support for fault injection (#1817) --- pkg/host/host_netbsd.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/host') diff --git a/pkg/host/host_netbsd.go b/pkg/host/host_netbsd.go index 160929194..dffdec5d7 100644 --- a/pkg/host/host_netbsd.go +++ b/pkg/host/host_netbsd.go @@ -23,6 +23,7 @@ func init() { checkFeature[FeatureComparisons] = unconditionallyEnabled checkFeature[FeatureUSBEmulation] = checkUSBEmulation checkFeature[FeatureExtraCoverage] = checkUSBEmulation + checkFeature[FeatureFault] = checkFault } func checkUSBEmulation() string { @@ -31,3 +32,10 @@ func checkUSBEmulation() string { } return "" } + +func checkFault() string { + if err := osutil.IsAccessible("/dev/fault"); err != nil { + return err.Error() + } + return "" +} -- cgit mrf-deployment