Skip to content
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

Add additional epoll tests #2758

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Conversation

stevenengler
Copy link
Contributor

Test the race-condition where Linux avoids spurious wakeups for epoll_wait if the epoll status changes before the threads are woken.

I wasn't sure if level-triggered epoll_wait() was guaranteed to be woken for all threads (it's not), so I tried it and figured it probably doesn't hurt to add a test for it.

@stevenengler stevenengler self-assigned this Feb 22, 2023
@github-actions github-actions bot added Component: Build Build/install tools and dependencies Component: Testing Unit and integration tests and frameworks labels Feb 22, 2023
src/test/epoll/CMakeLists.txt Outdated Show resolved Hide resolved
src/test/epoll/test_epoll.rs Show resolved Hide resolved
Test the race-condition where Linux avoids spurious wakeups for `epoll_wait` if
the epoll status changes before the threads are woken.
@stevenengler stevenengler merged commit 100685c into shadow:main Feb 23, 2023
@stevenengler stevenengler deleted the add-epoll-test branch February 23, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Build Build/install tools and dependencies Component: Testing Unit and integration tests and frameworks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants