aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/init_test.go')
-rw-r--r--sys/linux/init_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/linux/init_test.go b/sys/linux/init_test.go
index ed4cf03a1..8c236af5d 100644
--- a/sys/linux/init_test.go
+++ b/sys/linux/init_test.go
@@ -145,5 +145,25 @@ ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a0, 0x0)
ioctl$X86_IOC_RDMSR_REGS(0xa, 0xc02063a0, 0x0)
`,
},
+ {
+ In: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x1, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0}, 0x0)`,
+ Out: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x0, 0x0, 0x0, 0x3}, 0x0)`,
+ },
+ {
+ In: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x2, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0}, 0x0)`,
+ Out: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x0, 0x0, 0x0, 0x3}, 0x0)`,
+ },
+ {
+ In: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x3, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0}, 0x0)`,
+ Out: `sched_setattr(0x0, &(0x7f00000002c0)={0x0, 0x3, 0x0, 0x0, 0x3}, 0x0)`,
+ },
+ {
+ In: `sched_setattr(0x0, 0x123456, 0x0)`,
+ Out: `sched_setattr(0x0, 0x0, 0x0)`,
+ },
+ {
+ In: `sched_setattr(0x0, &(0x7f00000001c0)=ANY=[@ANYBLOB="1234567812345678"], 0x0)`,
+ Out: `sched_setattr(0x0, &(0x7f00000001c0)=ANY=[@ANYBLOB='\x00\x00\x00\x00\x00\x00\x00\x00'], 0x0)`,
+ },
})
}