If I build current git master at or after commit 055ecb7, it fails:
--- FAIL: TestSCMCredentials (0.00s)
creds_test.go:60: WriteMsgUnix failed with write unix @-><nil>: sendmsg: operation not permitted, want EPERM
This is src/syscall/creds_test.go, which contains code that assumes a net.OpError.Err field is directly a syscall.EPERM:
if err.(*net.OpError).Err != syscall.EPERM { .... }
This assumption is false after the commit. Now the syscall.EPERM is now wrapped up inside a SyscallError that's the result of calling os.NewSyscallError() in src/net/fd_unix.go's writeMsg().
The entire test here is conditional on os.Getuid() not being 0. I assume that the buildbots are running in some environment where os.Getuid() returns 0, which means this entire subtest in TestSCMCredentials() is being skipped. That may be a bug in itself (and there are a number of other tests that are conditional on the UID not being seen as 0).
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
Non-root Unix build fails after commit 055ecb7be580 in TestSCMCredentials
syscall: Non-root Unix build fails after commit 055ecb7be580 in TestSCMCredentials
May 6, 2015
If I build current git master at or after commit 055ecb7, it fails:
This is src/syscall/creds_test.go, which contains code that assumes a net.OpError.Err field is directly a syscall.EPERM:
This assumption is false after the commit. Now the syscall.EPERM is now wrapped up inside a SyscallError that's the result of calling os.NewSyscallError() in src/net/fd_unix.go's writeMsg().
The entire test here is conditional on os.Getuid() not being 0. I assume that the buildbots are running in some environment where os.Getuid() returns 0, which means this entire subtest in TestSCMCredentials() is being skipped. That may be a bug in itself (and there are a number of other tests that are conditional on the UID not being seen as 0).
The text was updated successfully, but these errors were encountered: