Skip to content

Commit

Permalink
Merge pull request #1126 from dkolsen-pgi/test/io_uring
Browse files Browse the repository at this point in the history
Disable io_uring tests on Linux kernel < 5.4
  • Loading branch information
ericniebler authored Oct 31, 2023
2 parents aa7cf74 + ee07775 commit cf75b72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/exec/test_io_uring_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
* limitations under the License.
*/

#if __has_include(<linux/io_uring.h>)
#include <linux/version.h>

// Some kernel versions have <linux/io_uring.h> but don't support or don't
// allow user access to some of the necessary system calls.
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0) && __has_include(<linux/io_uring.h>)

#include "exec/linux/io_uring_context.hpp"
#include "exec/scope.hpp"
#include "exec/single_thread_context.hpp"
Expand Down

0 comments on commit cf75b72

Please sign in to comment.