WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
85333
nrwt: make ServerProcess work on chromium win
https://bugs.webkit.org/show_bug.cgi?id=85333
Summary
nrwt: make ServerProcess work on chromium win
Dirk Pranke
Reported
2012-05-01 18:13:42 PDT
nrwt: make ServerProcess work on chromium win
Attachments
Patch
(5.63 KB, patch)
2012-05-01 18:35 PDT
,
Dirk Pranke
no flags
Details
Formatted Diff
Diff
patch for landing
(9.30 KB, patch)
2012-05-02 15:55 PDT
,
Dirk Pranke
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2012-05-01 18:35:48 PDT
Created
attachment 139722
[details]
Patch
Ojan Vafai
Comment 2
2012-05-01 19:36:41 PDT
Comment on
attachment 139722
[details]
Patch I suppose there's no way to write basic tests for this? It'd be fine for the tests to check sys.platform first to isolate them to only run on windows. Even something simple that just calls the code and makes sure it doesn't error is better than nothing IMO.
Tony Chang
Comment 3
2012-05-02 10:38:26 PDT
Comment on
attachment 139722
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=139722&action=review
> Tools/Scripts/webkitpy/layout_tests/port/server_process.py:45 > + import win32event
Nit: win32event doesn't appear to be used.
> Tools/Scripts/webkitpy/layout_tests/port/server_process.py:244 > + if e[0] not in (109, errno.ESHUTDOWN):
What's 109?
> Tools/Scripts/webkitpy/layout_tests/port/server_process.py:273 > + self._wait_for_data_and_update_buffers(deadline)
Nit: Maybe rename this method _posix?
Dirk Pranke
Comment 4
2012-05-02 14:11:21 PDT
(In reply to
comment #2
)
> (From update of
attachment 139722
[details]
) > I suppose there's no way to write basic tests for this? It'd be fine for the tests to check sys.platform first to isolate them to only run on windows. Even something simple that just calls the code and makes sure it doesn't error is better than nothing IMO.
I will add something. (In reply to
comment #3
)
> (From update of
attachment 139722
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=139722&action=review
> > > Tools/Scripts/webkitpy/layout_tests/port/server_process.py:45 > > + import win32event > > Nit: win32event doesn't appear to be used. >
Good catch, that's left over from a previous approach. I will remove it.
> > Tools/Scripts/webkitpy/layout_tests/port/server_process.py:244 > > + if e[0] not in (109, errno.ESHUTDOWN): > > What's 109?
> Dunno :) This was cribbed from some ActiveState sample code that I apparently dropped the comments for. I will add those back in and attempt to track down what this code refers to.
> > Tools/Scripts/webkitpy/layout_tests/port/server_process.py:273 > > + self._wait_for_data_and_update_buffers(deadline) > > Nit: Maybe rename this method _posix?
I don't really like "posix" since windows is theoretically posix-compliant. I will attempt to rename it to something else more meaningful, though.
Tony Chang
Comment 5
2012-05-02 14:33:51 PDT
It looks like there are unit tests that are scattered around that can be enabled. E.g., run_webkit_tests_integrationtest.py.
Dirk Pranke
Comment 6
2012-05-02 15:55:13 PDT
Created
attachment 139900
[details]
patch for landing
Dirk Pranke
Comment 7
2012-05-02 16:05:08 PDT
Committed
r115903
: <
http://trac.webkit.org/changeset/115903
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug