Skip to content

Add a test for ppoll #780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2017
Merged

Add a test for ppoll #780

merged 1 commit into from
Oct 20, 2017

Conversation

asomers
Copy link
Member

@asomers asomers commented Oct 12, 2017

No description provided.

@@ -16,3 +18,22 @@ fn test_poll() {
assert_eq!(nfds, 1);
assert!(fds[0].revents().unwrap().contains(POLLIN));
}

#[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd",
Copy link
Contributor

@Susurrus Susurrus Oct 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be great to have comments either inline or a big summary one that explains what this is doing and any gotchas that exist in this test. With a project as diverse as nix and the complexity of some of the APIs it exposes I think it's helpful to provide comments.

Also, we generally use aligned indentation, one per OS, when there are too many OSes and they need to line wrap.

@Susurrus
Copy link
Contributor

Looks like our Rust 1.14 problems are solved.

Also, thanks a lot for those comments. I think they're helpful and hopefully weren't too much of a burden to write. Where's the gold star emoji!?

bors r+

bors bot added a commit that referenced this pull request Oct 18, 2017
780: Add a test for ppoll r=Susurrus a=asomers
@bors
Copy link
Contributor

bors bot commented Oct 18, 2017

Build failed

@asomers
Copy link
Member Author

asomers commented Oct 19, 2017

The failure looks related to Travis's build cache

bors r+ susurrus

bors bot added a commit that referenced this pull request Oct 19, 2017
780: Add a test for ppoll r=asomers a=asomers
@bors
Copy link
Contributor

bors bot commented Oct 19, 2017

Timed out

@Susurrus
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Oct 19, 2017
780: Add a test for ppoll r=Susurrus a=asomers
@bors
Copy link
Contributor

bors bot commented Oct 19, 2017

Build failed

@asomers
Copy link
Member Author

asomers commented Oct 19, 2017

The build failed due to an ABI change at libc. I suspect that the ABI change was unintentional. If so, we should just wait for libc to revert it. If not, we'll have to make a matching update to nix.
rust-lang/libc@9029cfb

@Susurrus
Copy link
Contributor

This is already being resolved at least partially at rust-lang/libc#813. See the comment discussion I've been having over there. If you're willing to finish off the fix there, it'd be awesome.

@Susurrus
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Oct 20, 2017
780: Add a test for ppoll r=Susurrus a=asomers
@bors
Copy link
Contributor

bors bot commented Oct 20, 2017

@bors bors bot merged commit 5810b94 into nix-rust:master Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants