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

os: os_test: test fails when /bin/pwd does not exist #21684

Closed
rminnich opened this issue Aug 29, 2017 · 1 comment
Closed

os: os_test: test fails when /bin/pwd does not exist #21684

rminnich opened this issue Aug 29, 2017 · 1 comment
Labels
FrozenDueToAge Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@rminnich
Copy link
Contributor

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

Any version from the last few years, currently 1.9

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

amd64
various distros that no longer have /bin

What did you do?

go test os

Try it on, e.g., arch, or u-root (u-root.tk) where pwd is not in /bin

What did you expect to see?

go test os passes

What did you see instead?

It fails as /bin/pwd does not exist

@ianlancetaylor ianlancetaylor changed the title os/os_test: Assuming /bin/pwd exists results in an error in the test os: os_test: test fails when /bin/pwd does not exist Aug 29, 2017
@ianlancetaylor ianlancetaylor added this to the Go1.10 milestone Aug 29, 2017
@ianlancetaylor ianlancetaylor added the Testing An issue that has been verified to require only test changes, not just a test failure. label Aug 29, 2017
@gopherbot
Copy link

Change https://golang.org/cl/60010 mentions this issue: os: don't assume /bin/pwd in test, find it in $PATH

@golang golang locked and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

3 participants