Repository navigation
test websocket origin set in worker - #9737
Conversation
|
Try running with --debugger=gdb (or lldb as required) and setting a breakpoint on rust_panic? |
6cac6e8 to
7dccc3a
Compare
|
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) |
There was a problem hiding this comment.
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
Compare
|
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
Compare
|
Thanks, and sorry for the delay. @bors-servo r+ Reviewed 3 of 3 files at r6. Comments from the review on Reviewable.io |
|
📌 Commit b408f84 has been approved by |
|
⌛ Testing commit b408f84 with merge 6895dab... |
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 -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
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/?