Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sys/unix: TestPpoll and TestPoll fail a test all #27492

Closed
hdonnay opened this issue Sep 4, 2018 · 2 comments
Closed

x/sys/unix: TestPpoll and TestPoll fail a test all #27492

hdonnay opened this issue Sep 4, 2018 · 2 comments
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@hdonnay
Copy link

hdonnay commented Sep 4, 2018

What version of Go are you using (go version)?

go version go1.11 linux/amd64

What did you do?

cd $(mktemp -d)
cat >ex.go <<.
package main

import (
	"fmt"

	_ "golang.org/x/sys/unix"
)

func main() {
	fmt.Println("example")
}

.
go mod init example && go test all; echo $?

What did you expect to see?

0

What did you see instead?

1

The tests fail, presumably because it's run in a non-writable place.

--- FAIL: TestPpoll (0.00s)
    syscall_unix_test.go:613: mktmpfifo: failed to create FIFO: permission denied
--- FAIL: TestPoll (0.00s)
    syscall_unix_test.go:613: mktmpfifo: failed to create FIFO: permission denied
FAIL
FAIL	golang.org/x/sys/unix	0.171s

With modules, is there a place that tests can write to?

@gopherbot gopherbot added this to the Unreleased milestone Sep 4, 2018
@tklauser tklauser changed the title x/sys: TestPpoll and TestPoll fail a test all x/sys/unix: TestPpoll and TestPoll fail a test all Sep 5, 2018
@tklauser tklauser added the NeedsFix The path to resolution is known, but the work has not been done. label Sep 5, 2018
@tklauser tklauser self-assigned this Sep 5, 2018
@tklauser
Copy link
Member

tklauser commented Sep 5, 2018

/cc @bradfitz @ianlancetaylor

@bcmills
Copy link
Contributor

bcmills commented Oct 26, 2020

Fixed by CL 162987.

@bcmills bcmills closed this as completed Oct 26, 2020
@golang golang locked and limited conversation to collaborators Oct 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants