Skip to content

Commit 9025adf

Browse files
committed
fix:tests
1 parent a904a5b commit 9025adf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

windows/mkwinsyscall/mkwinsyscall_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,25 @@ func TestDLLFilenameEscaping(t *testing.T) {
5050
}
5151
}
5252

53-
func TestSyscallXGeneration(t *testing.T) {
53+
func TestSyscallNGeneration(t *testing.T) {
5454
tests := []struct {
5555
name string
5656
wantsysfunc string
5757
sig string
5858
}{
5959
{
6060
name: "syscall with 2 params",
61-
wantsysfunc: "syscall.Syscall",
61+
wantsysfunc: "syscall.SyscallN",
6262
sig: "Example(a1 *uint16, a2 *uint16) = ",
6363
},
6464
{
6565
name: "syscall with 6 params",
66-
wantsysfunc: "syscall.Syscall6",
66+
wantsysfunc: "syscall.SyscallN",
6767
sig: "Example(a1 *uint, a2 *uint, a3 *uint, a4 *uint, a5 *uint, a6 *uint) = ",
6868
},
6969
{
7070
name: "syscall with 15 params",
71-
wantsysfunc: "syscall.Syscall15",
71+
wantsysfunc: "syscall.SyscallN",
7272
sig: strings.ReplaceAll(`Example(a1 *uint, a2 *uint, a3 *uint, a4 *uint, a5 *uint, a6 *uint,
7373
a7 *uint, a8 *uint, a9 *uint, a10 *uint, a11 *uint, a12 *uint,
7474
a13 *uint, a14 *uint, a15 *uint) = `, "\n", ""),

0 commit comments

Comments
 (0)