Skip to content

Commit

Permalink
fix: add missing testdata
Browse files Browse the repository at this point in the history
Commit 41edee2 forgot to add golang.org/x/sys/unix stub. Whoops.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Aug 15, 2023
1 parent 41edee2 commit 545bc63
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions errorlint/testdata/src/golang.org/x/sys/unix/stubs.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package unix

import "syscall"

const (
EPERM = syscall.Errno(0x1)
ENOENT = syscall.Errno(0x2)
)

func Rmdir(string) error {
return ENOENT
}

func Kill(int, syscall.Signal) error {
return EPERM
}

0 comments on commit 545bc63

Please sign in to comment.