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

Comments

@rminnich
Copy link
Contributor

@rminnich rminnich commented Aug 29, 2017

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
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Aug 29, 2017

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

@gopherbot gopherbot closed this in 0cf7e54 Aug 29, 2017
@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.