Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/lib/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ int AioFill(aio_context_t *ctx, unsigned n)
int limit;
int used;

/* Only run these tests if the "CI" variable is set (GitHub runners do set
* it). This avoids spurious failures when running the tests in environments
* that are not isolated enough, and that might run other workflows using
* the AIO kernel sub-system. */
if (getenv("CI") == NULL) {
return -1;
}

/* Figure out how many events are available. */
fd = open("/proc/sys/fs/aio-max-nr", O_RDONLY);
munit_assert_int(fd, !=, -1);
Expand Down