aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd/init_test.go
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2020-12-01 19:30:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-12-02 08:20:40 +0100
commit2d2eca8c9d942abab8bfb28cd4a068ef1b7e1189 (patch)
tree24e05cf320f0541c8c2e1b4249b817650aaf7271 /sys/openbsd/init_test.go
parentc42a35e9053074ec924558e4aa4077ac0d86cfff (diff)
sys/openbsd: neutralize sysctl kern.witness
Do not fiddle with witness since we explicit values as part of the kernel configuration in dashboard/config/openbsd.
Diffstat (limited to 'sys/openbsd/init_test.go')
-rw-r--r--sys/openbsd/init_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go
index 3a6c2c14c..2a9ed640c 100644
--- a/sys/openbsd/init_test.go
+++ b/sys/openbsd/init_test.go
@@ -94,6 +94,11 @@ func TestNeutralize(t *testing.T) {
Out: `sysctl$kern(&(0x7f0000000300)={0x0}, 0x0, 0x0, 0x0, &(0x7f0000000300)="ff0380c5", 0x4)`,
},
{
+ // Test for sysctl kern.witness.
+ In: `sysctl$kern(&(0x7f0000000300)={0x1, 0x3c}, 0x2, 0x0, 0x0, &(0x7f0000000300)="ff0380c5", 0x4)`,
+ Out: `sysctl$kern(&(0x7f0000000300)={0x0}, 0x0, 0x0, 0x0, &(0x7f0000000300)="ff0380c5", 0x4)`,
+ },
+ {
In: `clock_settime(0x0, &(0x7f0000cc0ff0)={0x0, 0x0})`,
Out: `clock_settime(0xffffffffffffffff, &(0x7f0000cc0ff0))`,
},