- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for badStateFile (0.17 sec)
-
src/internal/poll/error_linux_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package poll_test import ( "errors" "internal/poll" "os" "syscall" ) func badStateFile() (*os.File, error) { if os.Getuid() != 0 { return nil, errors.New("must be root") } // Using OpenFile for a device file is an easy way to make a // file attached to the runtime-integrated network poller and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 13 08:53:02 UTC 2019 - 748 bytes - Viewed (0) -
src/internal/poll/error_stub_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !linux package poll_test import ( "errors" "os" "runtime" ) func badStateFile() (*os.File, error) { return nil, errors.New("not supported on " + runtime.GOOS) } func isBadStateFileError(err error) (string, bool) { return "", false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 413 bytes - Viewed (0) -
src/internal/poll/error_test.go
package poll_test import ( "fmt" "io/fs" "net" "os" "testing" "time" ) func TestReadError(t *testing.T) { t.Run("ErrNotPollable", func(t *testing.T) { f, err := badStateFile() if err != nil { t.Skip(err) } defer f.Close() // Give scheduler a chance to have two separated // goroutines: an event poller and an event waiter. time.Sleep(100 * time.Millisecond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 02:32:42 UTC 2020 - 1K bytes - Viewed (0)