Source file src/internal/runtime/syscall/syscall_linux_test.go
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 syscall_test 6 7 import ( 8 "internal/runtime/syscall" 9 "testing" 10 ) 11 12 func TestEpollctlErrorSign(t *testing.T) { 13 v := syscall.EpollCtl(-1, 1, -1, &syscall.EpollEvent{}) 14 15 const EBADF = 0x09 16 if v != EBADF { 17 t.Errorf("epollctl = %v, want %v", v, EBADF) 18 } 19 } 20