test/io_uring: Fix flaky test

We shouldn't use file descriptor numbers directly or use the possibly
closed stdin descriptor. Just use stdout and stderr to improve test
reliability.

Change-Id: Ibc197433beb53dbe4d792149d0733c603cc14003
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed
tree: 560acb203f32a2e156c0f22cd55ce49560e19a95
  1. example/
  2. include/
  3. include-dl/
  4. include-fd/
  5. include-uring/
  6. src/
  7. subprojects/
  8. test/
  9. .clang-format
  10. .clang-ignore
  11. .gitignore
  12. .lcovrc
  13. LICENSE
  14. MAINTAINERS
  15. meson.build
  16. meson_options.txt
  17. OWNERS
  18. README.md
README.md

stdplus

stdplus is a c++ project containing commonly used classes and functions for the Linux platform. Note the goals of this project are to implement only the minimum set of features needed by the OpenBMC project and other users. You may find the included set of functions currently quite sparse.

This project provides the following primitives:

  • A movable and copyable RAII helper wrapper which is used for wrapping c-native types that have custom destruction or copy reference logic.
  • Functions for trivially configuring signals without having to do the normal signal set operations from libc
  • C-Style Error Handler that wrap c-style functions which return errnos and negative error values into functions that throw c++ exceptions.
  • String Utilities that focus on providing helpful wrappers like efficient string append and concatenation.

Dependencies

Test cases require google{test,mock}, valgrind, and lcov. It also requires the Meson Build System which can be installed following the instructions at mesonbuild.com.

Building

For a standard release build, you want something like:

meson setup -Dexamples=false -Dtests=disabled builddir
ninja -C builddir
ninja -C builddir install

For a test / debug build, a typical configuration is

meson setup -Dtests=enabled builddir
meson test -C builddir