Debian Codegraph @

src/internal/runtime/syscall/linux/syscall_linux_test.go

raw
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package linux_test
6
7 import (
8 "internal/runtime/syscall/linux"
9 "testing"
10 )
11
12 func TestEpollctlErrorSign(t *testing.T) {
13 v := linux.EpollCtl(-1, 1, -1, &linux.EpollEvent{})
14
15 const EBADF = 0x09
16 if v != EBADF {
17 t.Errorf("epollctl = %v, want %v", v, EBADF)
18 }
19 }