aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netbsd/init_test.go
blob: ecb85956b3beef0641f0b678b157ae1e1fb13699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2023 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package netbsd_test

import (
	"testing"

	"github.com/google/syzkaller/prog"
	_ "github.com/google/syzkaller/sys"
	"github.com/google/syzkaller/sys/targets"
)

func TestNetBSDNeutralize(t *testing.T) {
	prog.TestDeserializeHelper(t, targets.NetBSD, targets.AMD64, nil, []prog.DeserializeTest{
		{
			In:  `compat_50_mknod(&(0x7f0000000000)='./file0\x00', 0x2001, 0x400)`,
			Out: `compat_50_mknod(&(0x7f0000000000)='./file0\x00', 0x8001, 0x400)`,
		},
	})
}