Skip to content
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

futures: enable testing without --features thread-pool #2098

Closed

Conversation

kentfredric
Copy link
Contributor

As is, running cargo test in the futures root directory
fails, as some of the tests are dependent on this functionality.

  • src/lib.rs: The doc tests are a little hairy in src/lib.rs due to
    default warnings about unused import, combined with warnings
    being deny()'d

  • tests/eventual.rs: This whole test suite needs this functionality
    so the test suite is turned into "no code to see here" without this
    feature.

  • tests/mutex.rs: Only one test relies on this feature, but a lot
    of cfg() modifiers are employed to keep warnings about unused imports
    to a minimum.

As is, running `cargo test` in the futures root directory
fails, as some of the tests are dependent on this functionality.

src/lib.rs: The doc tests are a little hairy in src/lib.rs due to
default warnings about unused import,  combined with warnings
being deny()'d

tests/eventual.rs: This whole test suite needs this functionality
so the test suite is turned into "no code to see here" without this
feature.

tests/mutex.rs: Only one test relies on this feature, but a lot
of cfg() modifiers are employed to keep warnings about unused imports
to a minimum.
@kentfredric
Copy link
Contributor Author

I may take a second pass at this approach and overhaul tests/ one test at a time to make sure they work under all --feature combinations.

cargo hack is such a useful tool here. :)

@kentfredric
Copy link
Contributor Author

The tests/ aspect of this is now superseded by #2101

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.

1 participant