From 2ab437bb1e9f9f34d2e080ad11c944464a8bd944 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 22 Mar 2020 14:23:35 +0100 Subject: prog: improve TestDeserializeHelper 1. Allow to not provide Out if it's the same as In. 2. Always check Out. --- sys/openbsd/init_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/openbsd') diff --git a/sys/openbsd/init_test.go b/sys/openbsd/init_test.go index 30937bade..8ca641f16 100644 --- a/sys/openbsd/init_test.go +++ b/sys/openbsd/init_test.go @@ -36,13 +36,11 @@ func TestNeutralize(t *testing.T) { }, { // major=22, minor=0 - In: `mknod(0x0, 0x0, 0x1600)`, - Out: `mknod(0x0, 0x0, 0x1600)`, + In: `mknod(0x0, 0x0, 0x1600)`, }, { // major=4, minor=0 - In: `mknod(0x0, 0x0, 0x400)`, - Out: `mknod(0x0, 0x0, 0x400)`, + In: `mknod(0x0, 0x0, 0x400)`, }, { // major=4, minor=1 @@ -76,8 +74,7 @@ func TestNeutralize(t *testing.T) { }, { // RLIMIT_CPU - In: `setrlimit(0x0, &(0x7f0000cc0ff0)={0x1, 0x1})`, - Out: `setrlimit(0x0, &(0x7f0000cc0ff0)={0x1, 0x1})`, + In: `setrlimit(0x0, &(0x7f0000cc0ff0)={0x1, 0x1})`, }, }) } -- cgit mrf-deployment