Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 10096008: added a test to check glibc socket functions wrappers (Closed)

Created:
8 years, 8 months ago by vissi
Modified:
8 years, 8 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
http://src.chromium.org/native_client/trunk/src/native_client/
Visibility:
Public.

Description

added a test to check glibc socket functions wrappers Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=8430

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -1 line) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M SConstruct View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A tests/glibc_socket_wrappers/nacl.scons View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A tests/glibc_socket_wrappers/test_sock.c View 1 2 3 4 5 6 7 8 1 chunk +341 lines, -0 lines 0 comments Download
A tests/glibc_socket_wrappers/test_sock_data View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vissi
test: https://chromiumcodereview.appspot.com/10095010
8 years, 8 months ago (2012-04-16 11:15:30 UTC) #1
vissi
https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/test_sock.c File tests/glibc_socket_wrappers/test_sock.c (right): https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/test_sock.c#newcode2 tests/glibc_socket_wrappers/test_sock.c:2: * Copyright 2010 The Native Client Authors. All rights ...
8 years, 8 months ago (2012-04-16 11:20:48 UTC) #2
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/test_sock.c File tests/glibc_socket_wrappers/test_sock.c (right): https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/test_sock.c#newcode19 tests/glibc_socket_wrappers/test_sock.c:19: #pragma GCC diagnostic ignored "-Wnonnull" Do you really need ...
8 years, 8 months ago (2012-04-16 11:26:50 UTC) #3
pasko-google - do not use
first quick pass https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/nacl_stat.h File tests/glibc_socket_wrappers/nacl_stat.h (right): https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/nacl_stat.h#newcode8 tests/glibc_socket_wrappers/nacl_stat.h:8: keeping a copy in the glibc ...
8 years, 8 months ago (2012-04-16 11:32:26 UTC) #4
vissi
Working test, but it still has a couple of lint warning. https://chromiumcodereview.appspot.com/10096008/diff/1/tests/glibc_socket_wrappers/nacl_stat.h File tests/glibc_socket_wrappers/nacl_stat.h (right): ...
8 years, 8 months ago (2012-04-18 16:28:33 UTC) #5
vissi
Per offline discussion: removed nacl_stat and syscalls that use it from irt_syscalls.h to minimize test ...
8 years, 8 months ago (2012-04-18 16:53:08 UTC) #6
vissi
On 2012/04/18 16:53:08, vissi wrote: > Per offline discussion: removed nacl_stat and syscalls that use ...
8 years, 8 months ago (2012-04-18 17:07:13 UTC) #7
vissi
On 2012/04/18 17:07:13, vissi wrote: > On 2012/04/18 16:53:08, vissi wrote: > > Per offline ...
8 years, 8 months ago (2012-04-18 18:09:53 UTC) #8
vissi
On 2012/04/18 18:09:53, vissi wrote: > On 2012/04/18 17:07:13, vissi wrote: > > On 2012/04/18 ...
8 years, 8 months ago (2012-04-24 09:07:21 UTC) #9
pasko-google - do not use
looking much nicer now. I have some small comments on style. From a bird eye ...
8 years, 8 months ago (2012-04-24 09:24:15 UTC) #10
vissi
fixed https://chromiumcodereview.appspot.com/10096008/diff/22001/tests/glibc_socket_wrappers/test_sock.c File tests/glibc_socket_wrappers/test_sock.c (right): https://chromiumcodereview.appspot.com/10096008/diff/22001/tests/glibc_socket_wrappers/test_sock.c#newcode10 tests/glibc_socket_wrappers/test_sock.c:10: #include <native_client/tests/glibc_socket_wrappers/irt_syscalls.h> On 2012/04/24 09:24:15, pasko wrote: > ...
8 years, 8 months ago (2012-04-24 10:01:54 UTC) #11
pasko-google - do not use
lgtm as far as Victor is ok btw, why are we always checking ret xor ...
8 years, 8 months ago (2012-04-24 10:48:21 UTC) #12
vissi
On 2012/04/24 10:48:21, pasko wrote: > lgtm as far as Victor is ok > > ...
8 years, 8 months ago (2012-04-24 10:51:47 UTC) #13
khim
LGTM errno has strange semantics: it's ONLY set if the function in question returns -1. ...
8 years, 8 months ago (2012-04-24 15:15:38 UTC) #14
vissi
On 2012/04/24 15:15:38, khim wrote: > LGTM > > errno has strange semantics: it's ONLY ...
8 years, 8 months ago (2012-04-26 09:31:33 UTC) #15
vissi
On 2012/04/26 09:31:33, vissi wrote: > On 2012/04/24 15:15:38, khim wrote: > > LGTM > ...
8 years, 8 months ago (2012-04-26 12:00:48 UTC) #16
vissi
8 years, 8 months ago (2012-04-26 17:22:40 UTC) #17
On 2012/04/26 12:00:48, vissi wrote:
> On 2012/04/26 09:31:33, vissi wrote:
> > On 2012/04/24 15:15:38, khim wrote:
> > > LGTM
> > > 
> > > errno has strange semantics: it's ONLY set if the function in question
> returns
> > > -1.
> > > 
> > > If it returns zero or positive value then errno is NOT defined!
> > > 
> > > It's POSIX:
> > http://pubs.opengroup.org/onlinepubs/009695399/functions/errno.html
> > 
> > chrome browser tests fail, not my fault afaik, waiting for open tree
> 
> So, it turned out that toolchain does not get installed correctly at win and
> mac, trying a tiny patch. Thinking on lucid-32 problem.

Lucid-32 fixed, if toolchain is ok, will also do DEPS roll.

Powered by Google App Engine
This is Rietveld 408576698