[Libguestfs] [libnbd PATCH v9 5/7] rust: async: Add a couple of integration tests

Eric Blake eblake at redhat.com
Wed Aug 30 13:42:00 UTC 2023


On Tue, Aug 29, 2023 at 05:17:19PM -0500, Eric Blake wrote:
> On Sat, Aug 26, 2023 at 11:29:58AM +0000, Tage Johansson wrote:
> > Add a couple of integration tests as rust/tests/test_async_*.rs. They
> > are very similar to the tests for the synchronous API.
> > ---
> 
> >  rust/tests/test_async_460_block_status.rs     |  98 ++++++++++++
> >  rust/tests/test_async_620_stats.rs            |  69 ++++++++
> 
> Our series crossed paths.  My commit 5aec7d3b add
> test_465_block_status_64.rs, but this commit of yours (at 0ed92592)
> did not add a counterpart async test, because you started your series
> before I added the 64-bit block status API.  Since I heavily
> copy/pasted the synchronous 460 into 465, I'll probably end up doing
> the same for the async version, unless you beat me to it.

I've done that in commit ac633f84.  It missed Rich's cut of release
1.17.4, and CI is now picking up a different set of failures, but it's
progress.

x86_64-freebsd-current, aarch64-macos-13:
   Compiling epoll v4.3.3
error[E0425]: cannot find value `EPOLL_CTL_ADD` in crate `libc`
  --> /.cargo/registry/src/index.crates.io-6f17d22bba15001f/epoll-4.3.3/src/lib.rs:19:27
   |
19 |     EPOLL_CTL_ADD = libc::EPOLL_CTL_ADD,
   |                           ^^^^^^^^^^^^^ not found in `libc`
   |
help: consider importing this unit variant
   |
11 + use ControlOptions::EPOLL_CTL_ADD;


-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org


More information about the Libguestfs mailing list