Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uptest websocket origin set in worker #9737
Conversation
highfive
commented
Feb 24, 2016
|
Try running with --debugger=gdb (or lldb as required) and setting a breakpoint on rust_panic? |
6cac6e8
to
7dccc3a
|
I get timeouts running from a debugger and crashes running it directly. Is it possible to crash without rust panicking (e.g. from C code) or am I not using the debugger properly?
|
|
Not sure what's up with the crash, but you'll need to add |
| ws.onclose = t.step_func(function(e) { | ||
| assert_equals(e.wasClean, true); | ||
| ws.onclose = t.step_func(function() {assert_unreached()}); | ||
| setTimeout(t.step_func_done(function() {done();}), 50) |
This comment has been minimized.
This comment has been minimized.
Ms2ger
Feb 26, 2016
Contributor
Just put the done() call as the final line of the file; it signals that all the async_tests have been defined, not that they have all finished. That's what the t.done() call here does.
254fd2c
to
53a165c
|
Thanks! Please address these comments and squash your commits into one. -S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r4, 2 of 2 files at r5. tests/wpt/web-platform-tests/websockets/Send-data.worker.js, line 22 [r5] (raw file): tests/wpt/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker.js, line 12 [r5] (raw file): Comments from the review on Reviewable.io |
53a165c
to
b408f84
|
Thanks, and sorry for the delay. @bors-servo r+ Reviewed 3 of 3 files at r6. Comments from the review on Reviewable.io |
|
|
test websocket origin set in worker Fixes #9535 This crashes and I'm not sure how to debug it (and whether it's a problem with the browser or more likely a problem with the test): ``` ./mach test-wpt /websockets/opening-handshake/003-sets-origin.worker --log-raw wpt.log Running 1 tests in web-platform-tests▶ CRASH [expected OK] /websockets/opening-handshake/003-sets-origin.worker Ran 1 tests finished in 2.0 seconds. • 0 ran as expected. 0 tests skipped. • 1 tests crashed unexpectedly ``` Also, should the test file be in `/websockets/` or `/websockets/opening-handshake/`? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9737) <!-- Reviewable:end -->
|
|
g-k commentedFeb 24, 2016
Fixes #9535
This crashes and I'm not sure how to debug it (and whether it's a problem with the browser or more likely a problem with the test):
Also, should the test file be in
/websockets/or/websockets/opening-handshake/?