aboutsummaryrefslogtreecommitdiffstats
path: root/sys/openbsd/init_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/openbsd/init_test.go')
-rw-r--r--sys/openbsd/init_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go
index d749acc09..7f3d9a489 100644
--- a/sys/openbsd/init_test.go
+++ b/sys/openbsd/init_test.go
@@ -83,11 +83,16 @@ func TestNeutralize(t *testing.T) {
In: `setrlimit(0x0, &(0x7f0000cc0ff0)={0x1, 0x1})`,
},
{
- // CTL_KERN, KERN_MAXCLUSTERS
- In: `sysctl$kern(&(0x7f0000cc0ff0)={0x1, 0x43}, 0x0, 0x0, 0x0, &(0x7f0000000180), 0x0)`,
+ // Test for sysctl kern.maxclusters.
+ In: `sysctl$kern(&(0x7f0000cc0ff0)={0x1, 0x43}, 0x2, 0x0, 0x0, &(0x7f0000000180), 0x0)`,
Out: `sysctl$kern(&(0x7f0000cc0ff0)={0x0}, 0x0, 0x0, 0x0, &(0x7f0000000180), 0x0)`,
},
{
+ // Test for sysctl kern.maxthread.
+ In: `sysctl$kern(&(0x7f0000000300)={0x1, 0x19}, 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))`,
},