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 upIntroduce force-inprocess feature #92
Conversation
|
|
|
What's up with this? Does the test failure point to an actual problem, or was that just some kind of Travis hiccup?... |
|
@antrik Sounds like an actual failure:
Will rebase and retry. |
|
@nox oh, I see what happened there: the condition for the fragmenting tests at https://github.com/servo/ipc-channel/blob/master/src/platform/test.rs#L207 needs to be adapted too, so these tests only run when actually using the BTW, I wonder whether there is some way to determine the backend to use in a single place, and store this in some kind of config variable that is used throughout the library, rather than having system-specific conditionals everywhere? (If there isn't, I'd consider that a serious shortcoming in Rust/Cargo...) |
|
@antrik Nice debugging, will disable these tests. |
| @@ -130,8 +129,7 @@ fn select() { | |||
| } | |||
|
|
|||
| #[test] | |||
| ///XXXjdm Windows' libc doesn't include fork. | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
antrik
Aug 24, 2016
Contributor
I think keeping the comment would be confusing: the multi-process tests actually can't work / don't make sense on platforms using the inprocess implementation -- regardless of whether fork() is available or not.
|
@bors-servo r+ |
|
|
Introduce force-inprocess feature
|
@bors-servo r- |
|
@bors-servo r=Manishearth |
|
|
|
|
|
@bors-servo r=Manishearth |
|
|
Introduce force-inprocess feature
|
|
|
@antrik Not running that test wasn't enough. |
| let (mut received_data, received_channels, received_shared_memory_regions) = | ||
| super_rx.recv().unwrap(); | ||
| // These tests only apply to platforms that need fragmentation. | ||
| #[cfg(all(not(feature = "inprocess"), target_os = "linux"))] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| assert_eq!(&received_data[..], &data[..]); | ||
| assert_eq!(received_channels.len(), receivers.len()); | ||
| assert_eq!(received_shared_memory_regions.len(), 0); | ||
| fn with_n_fds(n: usize, size: usize) { |
This comment has been minimized.
This comment has been minimized.
antrik
Aug 24, 2016
Contributor
I actually left the function outside of the conditional block on purpose, as it's not really platform-specific, and some existing and/or newly added generic tests could start using it too... I don't feel strongly about this though.
|
Looks good :-) As you added the warning clean-ups, I guess it needs a new r+? Or is the previous one sufficient to cover this?... |
|
Just wanted you to take a last look. :) @bors-servo r=antrik |
|
|
Introduce force-inprocess feature
|
|
|
@bors-servo retry |
Introduce force-inprocess feature
|
|
nox commentedAug 2, 2016
No description provided.