https://codereview.appspot.com/58660044/diff/40001/src/pkg/syscall/fcntl_unix_test.go File src/pkg/syscall/fcntl_unix_test.go (right): https://codereview.appspot.com/58660044/diff/40001/src/pkg/syscall/fcntl_unix_test.go#newcode27 src/pkg/syscall/fcntl_unix_test.go:27: name := "/tmp/TestFcntlFlock" make a tempdir first and put ...
11 years, 4 months ago
(2014-02-12 16:37:17 UTC)
#2
On Thu, Feb 13, 2014 at 6:50 AM, <nightlyone@googlemail.com> wrote: > Just two grammar nits. ...
11 years, 4 months ago
(2014-02-13 12:11:06 UTC)
#4
On Thu, Feb 13, 2014 at 6:50 AM, <nightlyone@googlemail.com> wrote:
> Just two grammar nits.
thanks. but i changed my mind to leave consistency_unix_test.go as it
is and drop the blank identifier function from this cl.
https://codereview.appspot.com/58660044/diff/110001/src/pkg/syscall/syscall_unix_test.go File src/pkg/syscall/syscall_unix_test.go (right): https://codereview.appspot.com/58660044/diff/110001/src/pkg/syscall/syscall_unix_test.go#newcode7 src/pkg/syscall/syscall_unix_test.go:7: // This file tests that some basic syscalls are ...
11 years, 4 months ago
(2014-02-24 05:49:05 UTC)
#6
On Mon, Feb 24, 2014 at 3:41 PM, <mikioh.mikioh@gmail.com> wrote: > i'm fine as it ...
11 years, 4 months ago
(2014-02-24 06:48:38 UTC)
#9
On Mon, Feb 24, 2014 at 3:41 PM, <mikioh.mikioh@gmail.com> wrote:
> i'm fine as it is.
i mean, on linux fcntl_getlk in fs/locks.c calls fancy
flock_to_posix_lock, so it looks enough.
On Mon, Feb 24, 2014 at 3:46 PM, <minux.ma@gmail.com> wrote: > Don't you want to ...
11 years, 4 months ago
(2014-02-24 06:52:25 UTC)
#10
On Mon, Feb 24, 2014 at 3:46 PM, <minux.ma@gmail.com> wrote:
> Don't you want to test F_SETLK?
>
> If you don't want to add that test, at least add _ = syscall.F_SETLK
> (probably also F_SETLKW).
Ah, do you want a functionality test?
> src/pkg/syscall/syscall_unix_test.go:25: // Unix-like systems.
> i think these comments are too verbose though.
suggestions pls.
On Mon, Feb 24, 2014 at 1:52 AM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > On Mon, ...
11 years, 4 months ago
(2014-02-24 07:06:31 UTC)
#11
On Mon, Feb 24, 2014 at 1:52 AM, Mikio Hara <mikioh.mikioh@gmail.com> wrote:
> On Mon, Feb 24, 2014 at 3:46 PM, <minux.ma@gmail.com> wrote:
> > Don't you want to test F_SETLK?
> >
> > If you don't want to add that test, at least add _ = syscall.F_SETLK
> > (probably also F_SETLKW).
>
> Ah, do you want a functionality test?
>
It's up to you. But I want to make sure we at least provide all required
constants and structures for each Unix.
(I was suggesting set and get a lock and compare if it's the same as
a simple functionality test.)
>
> > src/pkg/syscall/syscall_unix_test.go:25: // Unix-like systems.
> > i think these comments are too verbose though.
>
> suggestions pls.
>
Remove redundant "This blank identifier function tests that" (the reader
should
know that from code), and change "are consistent across all Unix-like
systems."
to "are consistent" (or similar).
Actually, I suggest we remove both, and add a block comment before all those
consistency test function, explaining what these do (test all these
function/constants
are consistent [and have the same type] on all unix-like systems.
Then for each function, just say what's it's testing, e.g. simply "//
termios constants",
"// Flock_t structure", etc.
On Mon, Feb 24, 2014 at 4:06 PM, minux <minux.ma@gmail.com> wrote: >> Ah, do you ...
11 years, 4 months ago
(2014-02-24 07:14:08 UTC)
#12
On Mon, Feb 24, 2014 at 4:06 PM, minux <minux.ma@gmail.com> wrote:
>> Ah, do you want a functionality test?
>
> It's up to you. But I want to make sure we at least provide all required
> constants and structures for each Unix.
got it, i'll simply add F_GETLK/F_SETLK/F_SEKLKW constant tests in this cl.
>> suggestions pls.
>
> Remove redundant ... (snip)
thanks for the suggestions.
Issue 58660044: code review 58660044: syscall: add fcntl test
(Closed)
Created 11 years, 4 months ago by mikio
Modified 11 years, 4 months ago
Reviewers: gobot
Base URL:
Comments: 11