diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-03-22 14:23:35 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-03-24 08:43:00 +0100 |
| commit | 2ab437bb1e9f9f34d2e080ad11c944464a8bd944 (patch) | |
| tree | 568bcf0cdf14d2df812018ab48277eaff0f21632 /sys/openbsd | |
| parent | ef871b2e4ff7b6a8f84a6a0a0fd3e9c3ed8e67b4 (diff) | |
prog: improve TestDeserializeHelper
1. Allow to not provide Out if it's the same as In.
2. Always check Out.
Diffstat (limited to 'sys/openbsd')
| -rw-r--r-- | sys/openbsd/init_test.go | 9 |
1 files changed, 3 insertions, 6 deletions
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})`, }, }) } |
