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

Open
hdonnay opened this issue Sep 4, 2018 · 1 comment

Comments

@hdonnay
Copy link

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 label Sep 5, 2018

@tklauser tklauser self-assigned this Sep 5, 2018

@tklauser

This comment has been minimized.

Copy link
Member

commented Sep 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.