-
Notifications
You must be signed in to change notification settings - Fork 96
virtio-queue doctests fail due to build-time inclusion conditionals #136
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
Comments
This doesn't seem to be a problem anymore if the tests are run with |
@lauralt Yes, the |
It is indeed confusing, the same approach is used in event-manager as well, but it is documented. But besides the fact that it is confusing (there was a whole thread regarding this test feature proposal, but I fail to find it), we didn't think of having the bare |
I managed to work around this for Fedora, so I guess it should be possible to do the same thing for other distros. Should we just simply document this somewhere? |
Yes, I'll document it. |
Added more details about how to run the tests, and mentioned about the need to use `--features test-utils` when running the tests in the virtio-queue crate. Fixes: rust-vmm#136. Signed-off-by: Laura Loghin <[email protected]>
Added more details about how to run the tests, and mentioned about the need to use `--features test-utils` when running the tests in the virtio-queue crate. Fixes: rust-vmm#136. Signed-off-by: Laura Loghin <[email protected]>
While building doctests, neither the
test
nor thedoctest
features are enabled. This means features gated behind[cfg(test...)]
will not be available in doctests code. Invirtio-queue
case, this has an impact on mock visibility and some Descriptor helper methods aren't available either.This is being discussed by the Rust Community here.
For the time being, we can either ignore the affected doctests (
descriptor::Descriptor (line 21)
anditerator::AvailIter (line 26)
) or ungate those features. Personally, I'm fine with either.The text was updated successfully, but these errors were encountered: