Skip to content

x/sys/unix: TestGetwd is improperly written #26678

@knz

Description

@knz

Please answer these questions before submitting your issue. Thanks!

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

1.11beta2

Does this issue reproduce with the latest release?

unsure

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

freebsd/amd64

What did you do?

ran bash all.bash in the src sub-directory (building from the git repo)

What did you expect to see?

all tests succeeded

What did you see instead?

--- FAIL: TestGetwd (0.00s)
    syscall_unix_test.go:493: Getwd returned "/data/usr/bin" want "/usr/bin"
FAIL
FAIL    cmd/vendor/golang.org/x/sys/unix        0.372s

Extra information: on my machine /usr is a symlink to /data/usr. This is pretty common on unix systems with multiple filesystems. The test should not be sensitive to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions