Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(308)

Issue 5846059: code review 5846059: syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by albert.strasheim
Modified:
12 years, 2 months ago
Reviewers:
r2
CC:
bradfitz, iant, golang-dev
Visibility:
Public.

Description

syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux.

Patch Set 1 #

Patch Set 2 : diff -r 160ec5506cb7 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 160ec5506cb7 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 160ec5506cb7 https://code.google.com/p/go/ #

Total comments: 17

Patch Set 5 : diff -r 160ec5506cb7 https://code.google.com/p/go/ #

Total comments: 2

Patch Set 6 : diff -r 160ec5506cb7 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -0 lines) Patch
A src/pkg/syscall/creds_linux_test.go View 1 2 3 4 5 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 11
albert.strasheim
Hello bradfitz@golang.org, iant@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2012-03-18 07:56:30 UTC) #1
bradfitz
You already have a +build linux line, so I'd drop _linux from the filename. Or ...
12 years, 2 months ago (2012-03-18 15:41:05 UTC) #2
albert.strasheim
Hello On Sun, Mar 18, 2012 at 5:41 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > You ...
12 years, 2 months ago (2012-03-18 15:58:44 UTC) #3
bradfitz
LGTM after nits below. http://codereview.appspot.com/5846059/diff/6001/src/pkg/syscall/creds_linux_test.go File src/pkg/syscall/creds_linux_test.go (right): http://codereview.appspot.com/5846059/diff/6001/src/pkg/syscall/creds_linux_test.go#newcode5 src/pkg/syscall/creds_linux_test.go:5: // +build linux You can ...
12 years, 2 months ago (2012-03-18 16:02:23 UTC) #4
albert.strasheim
PTAL http://codereview.appspot.com/5846059/diff/6001/src/pkg/syscall/creds_linux_test.go File src/pkg/syscall/creds_linux_test.go (right): http://codereview.appspot.com/5846059/diff/6001/src/pkg/syscall/creds_linux_test.go#newcode5 src/pkg/syscall/creds_linux_test.go:5: // +build linux On 2012/03/18 16:02:23, bradfitz wrote: ...
12 years, 2 months ago (2012-03-18 16:20:53 UTC) #5
bradfitz
LGTM http://codereview.appspot.com/5846059/diff/6002/src/pkg/syscall/creds_linux_test.go File src/pkg/syscall/creds_linux_test.go (right): http://codereview.appspot.com/5846059/diff/6002/src/pkg/syscall/creds_linux_test.go#newcode15 src/pkg/syscall/creds_linux_test.go:15: func TestSCMCredentials(t *testing.T) { This is weird enough ...
12 years, 2 months ago (2012-03-18 16:27:58 UTC) #6
albert.strasheim
PTAL Thanks for the review. On 2012/03/18 16:27:58, bradfitz wrote: > LGTM > > http://codereview.appspot.com/5846059/diff/6002/src/pkg/syscall/creds_linux_test.go ...
12 years, 2 months ago (2012-03-18 16:35:07 UTC) #7
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=14c7fd2498d6 *** syscall: Test SCM_CREDENTIALS, SO_PASSCRED on Linux. R=bradfitz, iant CC=golang-dev http://codereview.appspot.com/5846059 ...
12 years, 2 months ago (2012-03-18 17:12:45 UTC) #8
r2
Before this there were no tests in syscall. It's the raw kernel interface and not ...
12 years, 2 months ago (2012-03-18 21:05:38 UTC) #9
bradfitz
On Sun, Mar 18, 2012 at 2:05 PM, Rob 'Commander' Pike <r@google.com> wrote: > Before ...
12 years, 2 months ago (2012-03-18 21:13:47 UTC) #10
r2
12 years, 2 months ago (2012-03-18 21:19:25 UTC) #11
On 19/03/2012, at 8:13 AM, Brad Fitzpatrick wrote:

> On Sun, Mar 18, 2012 at 2:05 PM, Rob 'Commander' Pike <r@google.com> wrote:
> Before this there were no tests in syscall. It's the raw kernel interface and
not really Go's business to test.
> 
> You don't test that your syscall wrappers behave as you expect?

The whole tree does that, but of course for some obscure stuff there's reason to
test. My objection is not that syscall should not have tests, it's that we don't
know how it should test and now is not the time to work that out.
 
> 
> You've just broken a symmetry right before Go 1 is released.
>  
> Symmetry with what? 

Obscure physics term, sorry.  Think "changed a property of the package".

Leaving all that aside, the code base is supposed to be frozen now except for
documentation, critical bug fixes, and the tail of the windows story. Adding a
complex, hundred-line system-specific test right now, without sufficient time to
soak it, is unnecessary. The fact that the test in a package that doesn't really
have tests makes this even less supportable.

After Go 1.

-rob

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b